Commit 16c05486 authored by Ra Mänd's avatar Ra Mänd
Browse files

Shorten statements.

parent 2359a830
......@@ -70,7 +70,7 @@ class FieldCollectionBasicTestCase extends DrupalWebTestCase {
if (!isset($message)) {
$message = $text;
}
return $this->assertTrue(array_search($text, $_SESSION['entity_crud_hook_test']) !== FALSE, $message, $group);
return $this->assertTrue(in_array($text, $_SESSION['entity_crud_hook_test']), $message, $group);
}
/**
......@@ -95,7 +95,7 @@ class FieldCollectionBasicTestCase extends DrupalWebTestCase {
if (!isset($message)) {
$message = $text;
}
return $this->assertFalse(array_search($text, $_SESSION['entity_crud_hook_test']) !== FALSE, $message, $group);
return $this->assertFalse(in_array($text, $_SESSION['entity_crud_hook_test']), $message, $group);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment