1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/17494] Handle boolean attributes in checkbox assertions tests

PHPBB-17494
This commit is contained in:
Matt Friedman
2025-04-12 14:00:31 -07:00
parent 6ecb41f01a
commit f04f07f265

View File

@@ -1236,12 +1236,11 @@ class phpbb_functional_test_case extends phpbb_test_case
* @param string $name * @param string $name
* @param string $message * @param string $message
* *
* @return null * @return void
*/ */
public function assert_checkbox_is_checked($crawler, $name, $message = '') public function assert_checkbox_is_checked($crawler, $name, $message = '')
{ {
$this->assertSame( $this->assertNotNull(
'checked',
$this->assert_find_one_checkbox($crawler, $name)->attr('checked'), $this->assert_find_one_checkbox($crawler, $name)->attr('checked'),
$message ?: "Failed asserting that checkbox $name is checked." $message ?: "Failed asserting that checkbox $name is checked."
); );
@@ -1255,7 +1254,7 @@ class phpbb_functional_test_case extends phpbb_test_case
* @param string $name * @param string $name
* @param string $message * @param string $message
* *
* @return null * @return void
*/ */
public function assert_checkbox_is_unchecked($crawler, $name, $message = '') public function assert_checkbox_is_unchecked($crawler, $name, $message = '')
{ {