src/Codeception/Module/WPDb.php
protected function _seeTableInDatabase($table)
    {
        $dbh = $this->_getDbh();
        $sth = $dbh->prepare('SHOW TABLES LIKE :table');
        $this->debugSection('Query', $sth->queryString);
        $sth->execute(['table' => $table]);
        $count = $sth->rowCount();

        return $count == 1;
    }
protected function _seeTableInDatabase($table)
    {
        $dbh = $this->_getDbh();
        $sth = $dbh->prepare('SHOW TABLES LIKE :table');
        $this->debugSection('Query', $sth->queryString);
        $sth->execute(['table' => $table]);
        $count = $sth->rowCount();

        return $count == 1;
    }
protected function _seeTableInDatabase ( $ table ) { $ dbh = $ this -> _getDbh ( ) ; $ sth = $ dbh -> prepare ( 'SHOW TABLES LIKE :table' ) ; $ this -> debugSection ( 'Query' , $ sth -> queryString ) ; $ sth -> execute ( [ 'table' => $ table ] ) ; $ count = $ sth -> rowCount ( ) ; return $ count == 1 ; }
Asserts a table exists in the database.

@param string $table The table to look for.

@return bool Whether the table exists in the database or not.
Asserts a table exists in the database .