Skip to content

Commit a7d9484

Browse files
committed
Override framework’s bugs
1 parent c81725d commit a7d9484

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/functional/media_embed_test.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,19 @@ public function test_acp_modules()
170170
$this->assert_checkbox_is_checked($crawler, 'youtube');
171171
}
172172

173+
/**
174+
* Override original function to handle boolean attributes
175+
*
176+
* {@inheritDoc}
177+
*/
178+
public function assert_checkbox_is_checked($crawler, $name, $message = '')
179+
{
180+
$this->assertNotNull(
181+
$this->assert_find_one_checkbox($crawler, $name)->attr('checked'),
182+
$message ?: "Failed asserting that checkbox $name is checked."
183+
);
184+
}
185+
173186
/**
174187
* Override original function to search by checkbox value instead of name
175188
*

0 commit comments

Comments
 (0)