@@ -10,9 +10,7 @@ class InitCommandTest extends TestCase
1010
1111 public function testRunWithoutAdminAndReadmeCreationConvertAppNameToPascalCaseTelescopeAlreadyInstalled ()
1212 {
13- $ this ->mockUpdateConfigGetContent ('config/auto-doc.php ' , 'auto_doc.php ' );
14-
15- $ this ->mockUpdateConfigPutContent ('config/auto-doc.php ' , 'auto_doc_after_changes.php ' );
13+ $ this ->mockChangeConfig ('config/auto-doc.php ' , 'auto_doc.php ' , 'auto_doc_after_changes.php ' );
1614
1715 $ this ->mockFileGetContent (
1816 [
@@ -58,9 +56,7 @@ public function testRunWithoutAdminAndReadmeCreationConvertAppNameToPascalCaseTe
5856
5957 public function testRunWithoutAdminAndReadmeCreation ()
6058 {
61- $ this ->mockUpdateConfigGetContent ('config/auto-doc.php ' , 'auto_doc.php ' );
62-
63- $ this ->mockUpdateConfigPutContent ('config/auto-doc.php ' , 'auto_doc_after_changes.php ' );
59+ $ this ->mockChangeConfig ('config/auto-doc.php ' , 'auto_doc.php ' , 'auto_doc_after_changes.php ' );
6460
6561 $ this ->mockFileGetContent (
6662 [
@@ -108,9 +104,7 @@ public function testRunWithoutAdminAndReadmeCreation()
108104
109105 public function testRunWithAdminAndWithoutReadmeCreation ()
110106 {
111- $ this ->mockUpdateConfigGetContent ('config/auto-doc.php ' , 'auto_doc.php ' );
112-
113- $ this ->mockUpdateConfigPutContent ('config/auto-doc.php ' , 'auto_doc_after_changes.php ' );
107+ $ this ->mockChangeConfig ('config/auto-doc.php ' , 'auto_doc.php ' , 'auto_doc_after_changes.php ' );
114108
115109 $ this ->mockFileGetContent (
116110 [
@@ -162,9 +156,7 @@ public function testRunWithAdminAndWithoutReadmeCreation()
162156
163157 public function testRunWithAdminAndDefaultReadmeCreation ()
164158 {
165- $ this ->mockUpdateConfigGetContent ('config/auto-doc.php ' , 'auto_doc.php ' );
166-
167- $ this ->mockUpdateConfigPutContent ('config/auto-doc.php ' , 'auto_doc_after_changes.php ' );
159+ $ this ->mockChangeConfig ('config/auto-doc.php ' , 'auto_doc.php ' , 'auto_doc_after_changes.php ' );
168160
169161 $ this ->mockFileGetContent (
170162 [
@@ -342,9 +334,7 @@ public function testRunWithAdminAndDefaultReadmeCreation()
342334
343335 public function testRunWithAdminAndPartialReadmeCreation ()
344336 {
345- $ this ->mockUpdateConfigGetContent ('config/auto-doc.php ' , 'auto_doc.php ' );
346-
347- $ this ->mockUpdateConfigPutContent ('config/auto-doc.php ' , 'auto_doc_after_changes.php ' );
337+ $ this ->mockChangeConfig ('config/auto-doc.php ' , 'auto_doc.php ' , 'auto_doc_after_changes.php ' );
348338
349339 $ this ->mockFileGetContent (
350340 [
@@ -461,9 +451,7 @@ public function testRunWithAdminAndPartialReadmeCreation()
461451
462452 public function testRunWithAdminAndFullReadmeCreationAndRemovingInitializatorInstallationMedia ()
463453 {
464- $ this ->mockUpdateConfigGetContent ('config/auto-doc.php ' , 'auto_doc.php ' );
465-
466- $ this ->mockUpdateConfigPutContent ('config/auto-doc.php ' , 'auto_doc_after_changes.php ' );
454+ $ this ->mockChangeConfig ('config/auto-doc.php ' , 'auto_doc.php ' , 'auto_doc_after_changes.php ' );
467455
468456 $ this ->mockFileGetContent (
469457 [
0 commit comments