@@ -47,6 +47,7 @@ protected function setUp()
47
47
48
48
public function testGetAll ()
49
49
{
50
+ $ this ->config ->expects ($ this ->exactly (2 ))->method ('resetData ' );
50
51
$ this ->setLoadAllExpectation ();
51
52
$ this ->setLoadConfigExpectation ();
52
53
$ expected = ['foo ' => self ::$ allFixture ['foo ' ]];
@@ -64,6 +65,7 @@ public function testGetAllNoData()
64
65
65
66
public function testGetOne ()
66
67
{
68
+ $ this ->config ->expects ($ this ->exactly (2 ))->method ('resetData ' );
67
69
$ this ->setLoadAllExpectation ();
68
70
$ this ->setLoadConfigExpectation ();
69
71
$ this ->assertSame (['key ' => 'value ' ], $ this ->model ->getOne ('foo ' ));
@@ -72,6 +74,7 @@ public function testGetOne()
72
74
73
75
public function testGetNames ()
74
76
{
77
+ $ this ->config ->expects ($ this ->exactly (2 ))->method ('resetData ' );
75
78
$ this ->setLoadAllExpectation (false );
76
79
$ this ->setLoadConfigExpectation ();
77
80
$ this ->assertSame (['foo ' ], $ this ->model ->getNames ());
@@ -80,6 +83,7 @@ public function testGetNames()
80
83
81
84
public function testHas ()
82
85
{
86
+ $ this ->config ->expects ($ this ->exactly (2 ))->method ('resetData ' );
83
87
$ this ->setLoadAllExpectation (false );
84
88
$ this ->setLoadConfigExpectation ();
85
89
$ this ->assertTrue ($ this ->model ->has ('foo ' ));
@@ -88,6 +92,7 @@ public function testHas()
88
92
89
93
public function testIsModuleInfoAvailable ()
90
94
{
95
+ $ this ->config ->expects ($ this ->once ())->method ('resetData ' );
91
96
$ this ->setLoadConfigExpectation (true );
92
97
$ this ->assertTrue ($ this ->model ->isModuleInfoAvailable ());
93
98
}
0 commit comments