Fix tests to reflect updated code

This commit is contained in:
Jonny Barnes 2020-01-26 17:44:10 +00:00
parent 3fe200ffab
commit 50e4848e46
3 changed files with 4 additions and 7 deletions

View file

@ -60,11 +60,8 @@ class ArticlesTest extends TestCase
$yearAndMonth = Article::date(date('Y'), date('m'))->get();
$this->assertTrue(count($yearAndMonth) === 1);
$monthDecember = Article::date(date('Y') - 1, 12)->get();
$this->assertTrue(count($monthDecember) === 0);
$monthNotDecember = Article::date(date('Y') - 1, 1)->get();
$this->assertTrue(count($monthNotDecember) === 0);
$priorYear = Article::date(date('Y') - 1, 1)->get();
$this->assertTrue(count($priorYear) === 0);
$emptyScope = Article::date()->get();
$this->assertTrue(count($emptyScope) === 2);