Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/phpunit-deprecations'
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Sep 4, 2019
2 parents c4b36fa + 1dc7b07 commit 56871c4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/ComponentInstallerTest.php
Expand Up @@ -737,7 +737,7 @@ public function testOnPostPackageInstallDoesNotPromptIfPackageIsAlreadyInConfigu

$this->assertNull($this->installer->onPostPackageInstall($event->reveal()));
$config = file_get_contents(vfsStream::url('project/config/application.config.php'));
$this->assertContains("'Some\Component'", $config);
$this->assertStringContainsString("'Some\Component'", $config);
}

public function testOnPostPackageInstallDoesNotPromptForWhitelistedPackages()
Expand Down Expand Up @@ -768,7 +768,7 @@ public function testOnPostPackageInstallDoesNotPromptForWhitelistedPackages()

$this->assertNull($this->installer->onPostPackageInstall($event->reveal()));
$config = file_get_contents(vfsStream::url('project/config/application.config.php'));
$this->assertContains("'Some\Component'", $config);
$this->assertStringContainsString("'Some\Component'", $config);
}

public function testOnPostPackageInstallPromptsForConfigOptions()
Expand Down Expand Up @@ -829,7 +829,7 @@ public function testOnPostPackageInstallPromptsForConfigOptions()

$this->assertNull($this->installer->onPostPackageInstall($event->reveal()));
$config = file_get_contents(vfsStream::url('project/config/application.config.php'));
$this->assertContains("'Some\Component'", $config);
$this->assertStringContainsString("'Some\Component'", $config);
}

public function testOnPostPackageInstallPromptsForConfigOptionsWhenDefinedAsArrays()
Expand Down Expand Up @@ -929,8 +929,8 @@ public function testOnPostPackageInstallPromptsForConfigOptionsWhenDefinedAsArra

$this->assertNull($this->installer->onPostPackageInstall($event->reveal()));
$config = file_get_contents(vfsStream::url('project/config/application.config.php'));
$this->assertContains("'Some\Component'", $config);
$this->assertContains("'Other\Component'", $config);
$this->assertStringContainsString("'Some\Component'", $config);
$this->assertStringContainsString("'Other\Component'", $config);
}

public function testMultipleInvocationsOfOnPostPackageInstallCanPromptMultipleTimes()
Expand Down Expand Up @@ -992,7 +992,7 @@ public function testMultipleInvocationsOfOnPostPackageInstallCanPromptMultipleTi

$this->assertNull($this->installer->onPostPackageInstall($event->reveal()));
$config = file_get_contents(vfsStream::url('project/config/application.config.php'));
$this->assertContains("'Some\Component'", $config);
$this->assertStringContainsString("'Some\Component'", $config);

// Now do a second pass, with another package
$package = $this->prophesize(PackageInterface::class);
Expand Down Expand Up @@ -1049,7 +1049,7 @@ public function testMultipleInvocationsOfOnPostPackageInstallCanPromptMultipleTi

$this->assertNull($this->installer->onPostPackageInstall($event->reveal()));
$config = file_get_contents(vfsStream::url('project/config/application.config.php'));
$this->assertContains("'Other\Component'", $config);
$this->assertStringContainsString("'Other\Component'", $config);
}

public function testMultipleInvocationsOfOnPostPackageInstallCanReuseOptions()
Expand Down Expand Up @@ -1111,7 +1111,7 @@ public function testMultipleInvocationsOfOnPostPackageInstallCanReuseOptions()

$this->assertNull($this->installer->onPostPackageInstall($event->reveal()));
$config = file_get_contents(vfsStream::url('project/config/application.config.php'));
$this->assertContains("'Some\Component'", $config);
$this->assertStringContainsString("'Some\Component'", $config);

// Now do a second pass, with another package
$package = $this->prophesize(PackageInterface::class);
Expand All @@ -1134,7 +1134,7 @@ public function testMultipleInvocationsOfOnPostPackageInstallCanReuseOptions()

$this->assertNull($this->installer->onPostPackageInstall($event->reveal()));
$config = file_get_contents(vfsStream::url('project/config/application.config.php'));
$this->assertContains("'Other\Component'", $config);
$this->assertStringContainsString("'Other\Component'", $config);
}

public function testOnPostPackageUninstallReturnsEarlyIfEventIsNotInDevMode()
Expand Down

0 comments on commit 56871c4

Please sign in to comment.