From 05bd7dddc80ef2779626e25b0e4c033aa2ae5c16 Mon Sep 17 00:00:00 2001 From: git Date: Mon, 29 Jun 2020 17:12:42 -0400 Subject: [PATCH] Issue #3152855 by atbserg: Replace assertions involving calls to is_object() with assertIsObject()/assertIsObject() --- tests/src/Functional/FlexsliderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.