updated contrib modules
This commit is contained in:
@@ -48,13 +48,13 @@ class ViewsHandlersTest extends ViewsSqlTest {
|
||||
$empty_stdclass->value = array();
|
||||
|
||||
$null = NULL;
|
||||
// check defaults
|
||||
// check defaults.
|
||||
$this->assertEqual($empty_stdclass, views_break_phrase_string('', $null));
|
||||
|
||||
$handler = views_get_handler('node', 'title', 'argument');
|
||||
$this->assertEqual($handler, views_break_phrase_string('', $handler));
|
||||
|
||||
// test ors
|
||||
// test ors.
|
||||
$handler = views_break_phrase_string('word1 word2+word');
|
||||
$this->assertEqualValue(array('word1', 'word2', 'word'), $handler);
|
||||
$this->assertEqual('or', $handler->operator);
|
||||
@@ -88,7 +88,7 @@ class ViewsHandlersTest extends ViewsSqlTest {
|
||||
$this->assertEqualValue(array('wõrd1', 'wõrd2', 'wõrd'), $handler);
|
||||
$this->assertEqual('and', $handler->operator);
|
||||
|
||||
// test a single word
|
||||
// test a single word.
|
||||
$handler = views_break_phrase_string('word');
|
||||
$this->assertEqualValue(array('word'), $handler);
|
||||
$this->assertEqual('and', $handler->operator);
|
||||
@@ -103,7 +103,7 @@ class ViewsHandlersTest extends ViewsSqlTest {
|
||||
$empty_stdclass->value = array();
|
||||
|
||||
$null = NULL;
|
||||
// check defaults
|
||||
// check defaults.
|
||||
$this->assertEqual($empty_stdclass, views_break_phrase('', $null));
|
||||
|
||||
$handler = views_get_handler('node', 'title', 'argument');
|
||||
@@ -113,7 +113,7 @@ class ViewsHandlersTest extends ViewsSqlTest {
|
||||
$n1 = rand(0, 100);
|
||||
$n2 = rand(0, 100);
|
||||
$n3 = rand(0, 100);
|
||||
// test ors
|
||||
// test ors.
|
||||
$this->assertEqualValue(array($n1, $n2, $n3), views_break_phrase("$n1 $n2+$n3", $handler));
|
||||
$this->assertEqual('or', $handler->operator);
|
||||
$this->assertEqualValue(array($n1, $n2, $n3), views_break_phrase("$n1+$n2+$n3", $handler));
|
||||
@@ -133,7 +133,7 @@ class ViewsHandlersTest extends ViewsSqlTest {
|
||||
/**
|
||||
* Check to see if two values are equal.
|
||||
*
|
||||
* @param $first
|
||||
* @param string $first
|
||||
* The first value to check.
|
||||
* @param views_handler $handler
|
||||
* @param string $message
|
||||
@@ -147,4 +147,5 @@ class ViewsHandlersTest extends ViewsSqlTest {
|
||||
protected function assertEqualValue($first, $handler, $message = '', $group = 'Other') {
|
||||
return $this->assert($first == $handler->value, $message ? $message : t('First value is equal to second value'), $group);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user