diff --git a/tests/src/Content/Text/BBCodeTest.php b/tests/src/Content/Text/BBCodeTest.php
index fe37b91cd1..2f9a244ccc 100644
--- a/tests/src/Content/Text/BBCodeTest.php
+++ b/tests/src/Content/Text/BBCodeTest.php
@@ -116,12 +116,11 @@ class BBCodeTest extends MockedTest
public function testAutoLinking($data, $assertHTML)
{
$output = BBCode::convert($data);
+ $assert = '' . $data . '';
if ($assertHTML) {
- $assert = '' . $data . '';
+ $this->assertEquals($assert, $output);
} else {
- $assert = $data;
+ $this->assertNotEquals($assert, $output);
}
-
- $this->assertEquals($assert, $output);
}
}