diff --git a/tests/src/Functional/FlexsliderTest.php b/tests/src/Functional/FlexsliderTest.php index f8c47a4..2027582 100644 --- a/tests/src/Functional/FlexsliderTest.php +++ b/tests/src/Functional/FlexsliderTest.php @@ -103,7 +103,7 @@ public function testOptionSetCrud() { // Read the values from the database. $optionset = Flexslider::load($name); - $this->assertTrue(is_object($optionset), $this->t('Loaded option set.')); + $this->assertIsObject($optionset, $this->t('Loaded option set.')); $this->assertEqual($name, $optionset->id(), $this->t('Loaded name matches: @name', ['@name' => $optionset->id()])); /** @var \Drupal\flexslider\Entity\Flexslider $default_optionset */ @@ -150,7 +150,7 @@ public function testOptionSetCrud() { } // Delete the optionset. - $this->assertTrue(is_object($optionset), $this->t('Optionset exists and is ready to be deleted.')); + $this->assertIsObject($optionset, $this->t('Optionset exists and is ready to be deleted.')); try { $optionset->delete(); // Ensure the delete is successful.