src/Codeception/Module/WPDb.php
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);
        }
    }
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);
        }
    }
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 ) ; } }
Makes sure a term is not in the database.

Looks up both the `terms` table and the `term_taxonomy` tables.

@example
```php
// Asserts a 'fiction' term is not in the database.
$I->dontSeeTermInDatabase(['name' => 'fiction']);
// Asserts a 'fiction' term with slug 'genre--fiction' is not in the database.
$I->dontSeeTermInDatabase(['name' => 'fiction', 'slug' => 'genre--fiction']);
```

@param array $criteria An array of criteria to search for the term, can be columns from the `terms` and the
`term_taxonomy` tables.
Makes sure a term is not in the database .