features/bootstrap/Orm/OrmContext.php
public function iShouldSeeInDatabaseTableFieldEquals($table, $field, $pattern)
    {
        $found = Sql::createSql($this->getAdapter())
            ->select($table)
            ->where(["{$table}.{$field} = ?" => $pattern])
            ->count();
        Assert::assertTrue($found > 0);
    }
public function iShouldSeeInDatabaseTableFieldEquals($table, $field, $pattern)
    {
        $found = Sql::createSql($this->getAdapter())
            ->select($table)
            ->where(["{$table}.{$field} = ?" => $pattern])
            ->count();
        Assert::assertTrue($found > 0);
    }
public function iShouldSeeInDatabaseTableFieldEquals ( $ table , $ field , $ pattern ) { $ found = Sql :: createSql ( $ this -> getAdapter ( ) ) -> select ( $ table ) -> where ( [ "{$table}.{$field} = ?" => $ pattern ] ) -> count ( ) ; Assert :: assertTrue ( $ found > 0 ) ; }
Run query where field equals provided pattern

@Then /^I should see in database "([^"]*)" table a row where "([^"]*)" equals "([^"]*)"$/

@param string $table
@param string $field
@param string $pattern
Run query where field equals provided pattern