File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,16 @@ public function test()
44
44
$ m1 = new Recorder_Model_1 ();
45
45
$ m2 = new Recorder_Model_2 ();
46
46
$ recorder = new Recorder ($ collection );
47
+
48
+ $ recorder ->push ();
49
+
47
50
$ recorder ->add ($ m1 );
48
51
$ recorder ->add ($ m2 );
49
52
50
- $ this ->assertArrayHasKey ('Sonata\CacheBundle\Tests\Invalidation\Recorder_Model_1 ' , $ recorder ->get ());
51
- $ this ->assertArrayHasKey ('Sonata\CacheBundle\Tests\Invalidation\Recorder_Model_2 ' , $ recorder ->get ());
53
+ $ keys = $ recorder ->pop ();
54
+
55
+ $ this ->assertArrayHasKey ('Sonata\CacheBundle\Tests\Invalidation\Recorder_Model_1 ' , $ keys );
56
+ $ this ->assertArrayHasKey ('Sonata\CacheBundle\Tests\Invalidation\Recorder_Model_2 ' , $ keys );
52
57
53
- $ this ->assertEquals (array ('0 ' => 1 ), $ recorder ->get ('Sonata\CacheBundle\Tests\Invalidation\Recorder_Model_1 ' ));
54
- $ recorder ->reset ();
55
- $ this ->assertEquals (array (), $ recorder ->get ('Sonata\CacheBundle\Tests\Invalidation\Recorder_Model_1 ' ));
56
58
}
57
59
}
You can’t perform that action at this time.
0 commit comments