test: Replace deprecated assertInternalType()

Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
This commit is contained in:
Koji Tanaka 2023-01-07 16:06:55 +09:00 committed by Kamil Wylegala
parent a5f6b6c8ee
commit b5e7d582d9
2 changed files with 4 additions and 4 deletions

View file

@ -416,7 +416,7 @@ class CakeTestCaseTest extends CakeTestCase {
$Post = $this->getMockForModel('Post', array('save'));
$this->assertNull($Post->save(array()));
$this->assertInternalType('array', $Post->find('all'));
$this->assertIsArray($Post->find('all'));
}
/**

View file

@ -195,7 +195,7 @@ class ControllerTestCaseTest extends CakeTestCase {
)
));
$this->assertNull($Posts->Post->save(array()));
$this->assertInternalType('array', $Posts->Post->find('all'));
$this->assertIsArray($Posts->Post->find('all'));
$Posts = $this->Case->generate('Posts', array(
'models' => array('Post'),
@ -322,7 +322,7 @@ class ControllerTestCaseTest extends CakeTestCase {
public function testTestAction() {
$this->Case->generate('TestsApps');
$this->Case->testAction('/tests_apps/index');
$this->assertInternalType('array', $this->Case->controller->viewVars);
$this->assertIsArray($this->Case->controller->viewVars);
$this->Case->testAction('/tests_apps/set_action');
$results = $this->Case->controller->viewVars;
@ -352,7 +352,7 @@ class ControllerTestCaseTest extends CakeTestCase {
public function testTestActionArrayUrls() {
$this->Case->generate('TestsApps');
$this->Case->testAction(array('controller' => 'tests_apps', 'action' => 'index'));
$this->assertInternalType('array', $this->Case->controller->viewVars);
$this->assertIsArray($this->Case->controller->viewVars);
}
/**