Eccube\Tests\Repository\CustomerRepositoryGetQueryBuilderBySearchDataTest::testSex PHP Method

testSex() public method

public testSex ( )
    public function testSex()
    {
        $Male = $this->app['eccube.repository.master.sex']->find(1);
        $Female = $this->app['eccube.repository.master.sex']->find(2);
        $this->Customer->setSex($Male);
        $this->Customer1->setSex($Female);
        $this->Customer2->setSex(null);
        $this->Customer3->setSex(null);
        $this->app['orm.em']->flush();
        $this->searchData = array('sex' => array($Male, $Female));
        $this->scenario();
        $this->expected = 2;
        $this->actual = count($this->Results);
    }