PHP 8 Compatibility

This commit is contained in:
Frédéric Guillot
2022-02-05 11:49:03 -08:00
committed by GitHub
parent 61e63ef9e0
commit f5bb55bdb8
558 changed files with 6262 additions and 21691 deletions

View File

@@ -121,7 +121,7 @@ class HookHelperTest extends Base
$this->container['helper']
->asset
->expects($this->at(0))
->expects($this->once())
->method('css')
->with(
$this->equalTo('skin.css')
@@ -130,7 +130,7 @@ class HookHelperTest extends Base
$this->container['helper']
->asset
->expects($this->at(1))
->expects($this->once())
->method('js')
->with(
$this->equalTo('skin.js')
@@ -141,7 +141,7 @@ class HookHelperTest extends Base
$hookHelper->attach('test1', 'skin.css');
$hookHelper->attach('test2', 'skin.js');
$this->assertContains('<link rel="stylesheet" href="skin.css"></link>', $hookHelper->asset('css', 'test1'));
$this->assertContains('<script src="skin.js"></script>', $hookHelper->asset('js', 'test2'));
$this->assertStringContainsString('<link rel="stylesheet" href="skin.css"></link>', $hookHelper->asset('css', 'test1'));
$this->assertStringContainsString('<script src="skin.js"></script>', $hookHelper->asset('js', 'test2'));
}
}

View File

@@ -36,7 +36,7 @@ class ProjectActivityHelperTest extends Base
$this->assertNotEmpty($events[0]['event_content']);
$this->assertNotEmpty($events[0]['event_title']);
$this->assertNotEmpty($events[0]['author']);
$this->assertInternalType('array', $events[0]['task']);
$this->assertIsArray($events[0]['task']);
}
public function testGetProjectsEvents()
@@ -66,7 +66,7 @@ class ProjectActivityHelperTest extends Base
$this->assertNotEmpty($events[0]['event_content']);
$this->assertNotEmpty($events[0]['event_title']);
$this->assertNotEmpty($events[0]['author']);
$this->assertInternalType('array', $events[0]['task']);
$this->assertIsArray($events[0]['task']);
}
public function testGetTaskEvents()
@@ -92,6 +92,6 @@ class ProjectActivityHelperTest extends Base
$this->assertNotEmpty($events[0]['event_content']);
$this->assertNotEmpty($events[0]['event_title']);
$this->assertNotEmpty($events[0]['author']);
$this->assertInternalType('array', $events[0]['task']);
$this->assertIsArray($events[0]['task']);
}
}