We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c81725d commit a7d9484Copy full SHA for a7d9484
1 file changed
tests/functional/media_embed_test.php
@@ -170,6 +170,19 @@ public function test_acp_modules()
170
$this->assert_checkbox_is_checked($crawler, 'youtube');
171
}
172
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
+
186
/**
187
* Override original function to search by checkbox value instead of name
188
*
0 commit comments