Skip to content

Commit

Permalink
added a unit test for getter
Browse files Browse the repository at this point in the history
  • Loading branch information
einorler committed Sep 20, 2016
1 parent 578932b commit bc397d7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Tests/Unit/Filter/Widget/Choice/SingleTermChoiceTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace ONGR\FilterManagerBundle\Tests\Unit\Filter\Widget\Choice;

use ONGR\FilterManagerBundle\Filter\Widget\Choice\SingleTermChoice;

class SingleTermChoiceTest extends \PHPUnit_Framework_TestCase
{
public function testShowZeroChoicesGetterAndSetter()
{
$filter = new SingleTermChoice();
$filter->setShowZeroChoices(true);
$this->assertTrue($filter->getShowZeroChoices());
}
}

0 comments on commit bc397d7

Please sign in to comment.