Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyslik committed Mar 14, 2017
1 parent 5d8412c commit bd136fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/SortableLinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
class SortableLinkTest extends \Orchestra\Testbench\TestCase
{

public function testSomething()
public function testQueryStringParameterWithBooleanStaysInLink()
{
Request::replace(['key' => 0, 'another-key' => null, 'another-one' => 1]);
$link = SortableLink::render(['column']);
$this->assertTrue(str_contains($link, ['key=0', 'another-key=null', 'another-one=1']));

$this->assertTrue(str_contains($link, ['key=0']));
$this->assertTrue(str_contains($link, ['another-one=1']));
$this->assertFalse(str_contains($link, ['another-key=null']));
}


Expand Down

0 comments on commit bd136fb

Please sign in to comment.