Ouzo\Db\WhereClause\EmptyWhereClauseTest::shouldTreatEmptyWhereClauseAsNothingWasGivenAsParameter PHP Method

shouldTreatEmptyWhereClauseAsNothingWasGivenAsParameter() public method

    public function shouldTreatEmptyWhereClauseAsNothingWasGivenAsParameter()
    {
        // given
        Product::create(array('name' => 'one'));
        Product::create(array('name' => 'two'));
        // when
        $products = Product::where(new EmptyWhereClause())->fetchAll();
        // then
        Assert::thatArray($products)->hasSize(2);
    }