Codeception\Module\WPDb::dontSeeTermInDatabase PHP Метод

dontSeeTermInDatabase() публичный Метод

Looks up both the terms table and the term_taxonomy tables.
public dontSeeTermInDatabase ( array $criteria )
$criteria array An array of criteria to search for the term, can be columns from the `terms` and the `term_taxonomy` tables.
    public function dontSeeTermInDatabase(array $criteria)
    {
        $termsCriteria = array_intersect_key($criteria, array_flip($this->termKeys));
        $termTaxonomyCriteria = array_intersect_key($criteria, array_flip($this->termTaxonomyKeys));
        if (!empty($termsCriteria)) {
            // this one fails... go to...
            $this->dontSeeInDatabase($this->grabTermsTableName(), $termsCriteria);
        }
        if (!empty($termTaxonomyCriteria)) {
            $this->dontSeeInDatabase($this->grabTermTaxonomyTableName(), $termTaxonomyCriteria);
        }
    }
WPDb