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);
|
||||
|
|
|
@ -22,7 +22,7 @@ class NotesTest extends TestCase
|
|||
*/
|
||||
public function test_get_note_attribute_method()
|
||||
{
|
||||
$expected = '<p>Having a <a rel="tag" class="p-category" href="/notes/tagged/beer">#beer</a> at the local. <span role="img" aria-label="beer mug">🍺</span></p>' . PHP_EOL;
|
||||
$expected = '<p>Having a <a rel="tag" class="p-category" href="/notes/tagged/beer">#beer</a> at the local. 🍺</p>' . PHP_EOL;
|
||||
$note = Note::find(2);
|
||||
$this->assertEquals($expected, $note->note);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue