Skip to content

Commit 74076e2

Browse files
committed
Fix testing errors
1 parent bf92bc6 commit 74076e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/Fixtures/UncachedProfile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ class UncachedProfile extends CachedModel
1414

1515
public function author() : BelongsTo
1616
{
17-
return $this->belongsTo(UnachedAuthor::class);
17+
return $this->belongsTo(UncachedAuthor::class);
1818
}
1919
}

tests/Unit/CachedBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function testCursorModelResultsCreatesCache()
278278

279279
public function testFindModelResultsCreatesCache()
280280
{
281-
$author = (new Author)->find(1);
281+
$author = collect()->push((new Author)->find(1));
282282
$key = 'genealabslaravelmodelcachingtestsfixturesauthor_1';
283283
$tags = [
284284
'genealabslaravelmodelcachingtestsfixturesauthor',
@@ -288,7 +288,7 @@ public function testFindModelResultsCreatesCache()
288288
->get($key));
289289
$liveResults = collect()->push((new UncachedAuthor)->find(1));
290290

291-
$this->assertEquals($author, $cachedResults->first());
291+
$this->assertEmpty($author->diffAssoc($cachedResults));
292292
$this->assertEmpty($liveResults->diffAssoc($cachedResults));
293293
}
294294

0 commit comments

Comments
 (0)