Fix tests to reflect updated code
This commit is contained in:
parent
3fe200ffab
commit
50e4848e46
3 changed files with 4 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue