Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Referrers/tests/Unit/SocialTest.php')
-rw-r--r--plugins/Referrers/tests/Unit/SocialTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Referrers/tests/Unit/SocialTest.php b/plugins/Referrers/tests/Unit/SocialTest.php
index c25f150c83..0c86b24b0f 100644
--- a/plugins/Referrers/tests/Unit/SocialTest.php
+++ b/plugins/Referrers/tests/Unit/SocialTest.php
@@ -17,7 +17,7 @@ use Spyc;
*/
class SocialTest extends \PHPUnit\Framework\TestCase
{
- public static function setUpBeforeClass()
+ public static function setUpBeforeClass(): void
{
// inject definitions to avoid database usage
$yml = file_get_contents(PIWIK_PATH_TEST_TO_ROOT . Social::DEFINITION_FILE);
@@ -92,6 +92,6 @@ class SocialTest extends \PHPUnit\Framework\TestCase
*/
public function testGetLogoFromUrl($url, $expected)
{
- $this->assertContains($expected, Social::getInstance()->getLogoFromUrl($url));
+ self::assertStringContainsString($expected, Social::getInstance()->getLogoFromUrl($url));
}
} \ No newline at end of file