Skip to content

Commit

Permalink
Issue #3152855 by atbserg: Replace assertions involving calls to is_o…
Browse files Browse the repository at this point in the history
…bject() with assertIsObject()/assertIsObject()
  • Loading branch information
git authored and amaria committed Jun 29, 2020
1 parent ac7fd23 commit 05bd7dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/Functional/FlexsliderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 05bd7dd

Please sign in to comment.