mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Use terser assertions.
This commit is contained in:
parent
4d434ec9f3
commit
c1b2ca581c
1 changed files with 2 additions and 4 deletions
|
@ -1464,13 +1464,11 @@ class FormHelperTest extends CakeTestCase {
|
||||||
|
|
||||||
$this->Form->setEntity('Contact.1.email');
|
$this->Form->setEntity('Contact.1.email');
|
||||||
$result = $this->Form->tagIsInvalid();
|
$result = $this->Form->tagIsInvalid();
|
||||||
$expected = false;
|
$this->assertFalse($result);
|
||||||
$this->assertSame($expected, $result);
|
|
||||||
|
|
||||||
$this->Form->setEntity('Contact.0.name');
|
$this->Form->setEntity('Contact.0.name');
|
||||||
$result = $this->Form->tagIsInvalid();
|
$result = $this->Form->tagIsInvalid();
|
||||||
$expected = false;
|
$this->assertFalse($result);
|
||||||
$this->assertSame($expected, $result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue