1
1
<?php namespace GeneaLabs \LaravelModelCaching \Tests \Integration \CachedBuilder ;
2
2
3
- use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Author ;
4
3
use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Book ;
5
- use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Profile ;
6
- use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Publisher ;
7
- use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Store ;
8
4
use GeneaLabs \LaravelModelCaching \Tests \Fixtures \UncachedAuthor ;
9
5
use GeneaLabs \LaravelModelCaching \Tests \Fixtures \UncachedBook ;
10
- use GeneaLabs \LaravelModelCaching \Tests \Fixtures \UncachedProfile ;
11
- use GeneaLabs \LaravelModelCaching \Tests \Fixtures \UncachedPublisher ;
12
- use GeneaLabs \LaravelModelCaching \Tests \Fixtures \UncachedStore ;
13
- use GeneaLabs \LaravelModelCaching \Tests \Fixtures \Http \Resources \Author as AuthorResource ;
14
6
use GeneaLabs \LaravelModelCaching \Tests \IntegrationTestCase ;
15
- use Illuminate \Foundation \Testing \RefreshDatabase ;
16
- use Illuminate \Support \Collection ;
17
7
18
8
class WhereInTest extends IntegrationTestCase
19
9
{
20
- public function testWithInUsingCollectionQuery ()
10
+ public function testWhereInUsingCollectionQuery ()
21
11
{
22
12
$ key = sha1 ('genealabs:laravel-model-caching:testing::memory::books:genealabslaravelmodelcachingtestsfixturesbook-author_id_in_1_2_3_4 ' );
23
13
$ tags = [
@@ -42,8 +32,8 @@ public function testWithInUsingCollectionQuery()
42
32
$ this ->assertEquals ($ liveResults ->pluck ("id " ), $ cachedResults ->pluck ("id " ));
43
33
}
44
34
45
-
46
- public function testWithInWhenSetIsEmpty ()
35
+ /** @group test */
36
+ public function testWhereInWhenSetIsEmpty ()
47
37
{
48
38
$ key = sha1 ('genealabs:laravel-model-caching:testing::memory::books:genealabslaravelmodelcachingtestsfixturesbook-author_id_in_1_2_3_4 ' );
49
39
$ tags = [
@@ -57,9 +47,9 @@ public function testWithInWhenSetIsEmpty()
57
47
->whereIn ("author_id " , $ authors )
58
48
->get ();
59
49
$ cachedResults = $ this
60
- ->cache ()
61
- ->tags ($ tags )
62
- ->get ($ key )['value ' ];
50
+ ->cache ()
51
+ ->tags ($ tags )
52
+ ->get ($ key )['value ' ];
63
53
$ liveResults = (new UncachedBook )
64
54
->whereIn ("author_id " , $ authors )
65
55
->get ();
0 commit comments