Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace GeneaLabs\LaravelModelCaching\Tests\Integration\CachedBuilder; |
||
22 | public function testFirstOrCreateFlushesCacheForModel() |
||
23 | { |
||
24 | (new Author)->truncate(); |
||
25 | $noAuthors = (new Author)->get(); |
||
26 | (new Author)->create([ |
||
27 | 'name' => 'foo', |
||
28 | 'email' => '[email protected]', |
||
29 | ]); |
||
30 | $authors = (new Author)->get(); |
||
31 | |||
32 | $this->assertEquals(0, $noAuthors->count()); |
||
33 | $this->assertEquals(1, $authors->count()); |
||
34 | } |
||
35 | } |
||
36 |