@@ -38,9 +38,8 @@ protected function setUp(): void
3838
3939 public function testSetInsertsNewRows ()
4040 {
41- $ results = $ this ->settings ->set ('Test.siteName ' , 'Foo ' );
41+ $ this ->settings ->set ('Test.siteName ' , 'Foo ' );
4242
43- $ this ->assertTrue ($ results );
4443 $ this ->seeInDatabase ($ this ->table , [
4544 'class ' => 'Tests\Support\Config\Test ' ,
4645 'key ' => 'siteName ' ,
@@ -51,9 +50,8 @@ public function testSetInsertsNewRows()
5150
5251 public function testSetInsertsBoolTrue ()
5352 {
54- $ results = $ this ->settings ->set ('Test.siteName ' , true );
53+ $ this ->settings ->set ('Test.siteName ' , true );
5554
56- $ this ->assertTrue ($ results );
5755 $ this ->seeInDatabase ($ this ->table , [
5856 'class ' => 'Tests\Support\Config\Test ' ,
5957 'key ' => 'siteName ' ,
@@ -66,9 +64,8 @@ public function testSetInsertsBoolTrue()
6664
6765 public function testSetInsertsBoolFalse ()
6866 {
69- $ results = $ this ->settings ->set ('Test.siteName ' , false );
67+ $ this ->settings ->set ('Test.siteName ' , false );
7068
71- $ this ->assertTrue ($ results );
7269 $ this ->seeInDatabase ($ this ->table , [
7370 'class ' => 'Tests\Support\Config\Test ' ,
7471 'key ' => 'siteName ' ,
@@ -81,9 +78,8 @@ public function testSetInsertsBoolFalse()
8178
8279 public function testSetInsertsNull ()
8380 {
84- $ results = $ this ->settings ->set ('Test.siteName ' , null );
81+ $ this ->settings ->set ('Test.siteName ' , null );
8582
86- $ this ->assertTrue ($ results );
8783 $ this ->seeInDatabase ($ this ->table , [
8884 'class ' => 'Tests\Support\Config\Test ' ,
8985 'key ' => 'siteName ' ,
@@ -96,10 +92,9 @@ public function testSetInsertsNull()
9692
9793 public function testSetInsertsArray ()
9894 {
99- $ data = ['foo ' => 'bar ' ];
100- $ results = $ this ->settings ->set ('Test.siteName ' , $ data );
95+ $ data = ['foo ' => 'bar ' ];
96+ $ this ->settings ->set ('Test.siteName ' , $ data );
10197
102- $ this ->assertTrue ($ results );
10398 $ this ->seeInDatabase ($ this ->table , [
10499 'class ' => 'Tests\Support\Config\Test ' ,
105100 'key ' => 'siteName ' ,
@@ -112,10 +107,9 @@ public function testSetInsertsArray()
112107
113108 public function testSetInsertsObject ()
114109 {
115- $ data = (object ) ['foo ' => 'bar ' ];
116- $ results = $ this ->settings ->set ('Test.siteName ' , $ data );
110+ $ data = (object ) ['foo ' => 'bar ' ];
111+ $ this ->settings ->set ('Test.siteName ' , $ data );
117112
118- $ this ->assertTrue ($ results );
119113 $ this ->seeInDatabase ($ this ->table , [
120114 'class ' => 'Tests\Support\Config\Test ' ,
121115 'key ' => 'siteName ' ,
@@ -136,9 +130,8 @@ public function testSetUpdatesExistingRows()
136130 'updated_at ' => Time::now ()->toDateTimeString (),
137131 ]);
138132
139- $ results = $ this ->settings ->set ('Test.siteName ' , 'Bar ' );
133+ $ this ->settings ->set ('Test.siteName ' , 'Bar ' );
140134
141- $ this ->assertTrue ($ results );
142135 $ this ->seeInDatabase ($ this ->table , [
143136 'class ' => 'Tests\Support\Config\Test ' ,
144137 'key ' => 'siteName ' ,
@@ -148,9 +141,8 @@ public function testSetUpdatesExistingRows()
148141
149142 public function testWorksWithoutConfigClass ()
150143 {
151- $ results = $ this ->settings ->set ('Nada.siteName ' , 'Bar ' );
144+ $ this ->settings ->set ('Nada.siteName ' , 'Bar ' );
152145
153- $ this ->assertTrue ($ results );
154146 $ this ->seeInDatabase ($ this ->table , [
155147 'class ' => 'Nada ' ,
156148 'key ' => 'siteName ' ,
@@ -170,9 +162,8 @@ public function testForgetSuccess()
170162 'updated_at ' => Time::now ()->toDateTimeString (),
171163 ]);
172164
173- $ results = $ this ->settings ->forget ('Test.siteName ' );
165+ $ this ->settings ->forget ('Test.siteName ' );
174166
175- $ this ->assertTrue ($ results );
176167 $ this ->dontSeeInDatabase ($ this ->table , [
177168 'class ' => 'Tests\Support\Config\Test ' ,
178169 'key ' => 'siteName ' ,
@@ -181,16 +172,18 @@ public function testForgetSuccess()
181172
182173 public function testForgetWithNoStoredRecord ()
183174 {
184- $ results = $ this ->settings ->forget ('Test.siteName ' );
175+ $ this ->settings ->forget ('Test.siteName ' );
185176
186- $ this ->assertTrue ($ results );
177+ $ this ->dontSeeInDatabase ($ this ->table , [
178+ 'class ' => 'Tests\Support\Config\Test ' ,
179+ 'key ' => 'siteName ' ,
180+ ]);
187181 }
188182
189183 public function testSetWithContext ()
190184 {
191- $ results = $ this ->settings ->set ('Test.siteName ' , 'Banana ' , 'environment:test ' );
185+ $ this ->settings ->set ('Test.siteName ' , 'Banana ' , 'environment:test ' );
192186
193- $ this ->assertTrue ($ results );
194187 $ this ->seeInDatabase ($ this ->table , [
195188 'class ' => 'Tests\Support\Config\Test ' ,
196189 'key ' => 'siteName ' ,
0 commit comments