Skip to content

Commit

Permalink
Fix TermBuilderTest
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed Jan 28, 2019
1 parent 03ab796 commit 6d467c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/TermBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class TermBuilderTest extends AbstractTestCase
{
public function test_termbuilder_builds_terms_array()
{
$configReturn= false;
global $configReturn;
$configReturn= false;

$termsResult = ['hi', 'im', 'a', 'few', 'terms'];
$terms = TermBuilder::terms(implode(' ', $termsResult));
Expand All @@ -19,13 +19,13 @@ public function test_termbuilder_builds_terms_array()

public function test_termbuilder_builds_terms_array_with_wildcard()
{
$configReturn = true;
global $configReturn;
$configReturn = true;

$termsResult = ['hi', 'im', 'a', 'few', 'terms'];
$terms = TermBuilder::terms(implode(' ', $termsResult));
$termsResultWithWilcard = ['hi*', 'im*', 'a*', 'few*', 'terms*'];
$diff = $terms->diff($termsResult);
$termsResultWithWildcard = ['hi*', 'im*', 'a*', 'few*', 'terms*'];
$diff = $terms->diff($termsResultWithWildcard);
$this->assertCount(0, $diff);
}
}
Expand Down

0 comments on commit 6d467c4

Please sign in to comment.