JamesMoss\Flywheel\QueryTest::testPredicate PHP Method

testPredicate() public method

public testPredicate ( )
    public function testPredicate()
    {
        $path = __DIR__ . '/fixtures/datastore/querytest';
        $config = new Config($path . '/');
        $repo = new Repository('countries', $config);
        $query = new Query($repo);
        $query->where('cca2', '==', 'GB');
        $predicate = new Predicate();
        $predicate->where('cca2', '==', 'GB');
        $this->assertAttributeEquals($predicate, 'predicate', $query);
    }