src/Codeception/Module/WPDb.php
public function dontHaveCommentInDatabase(array $criteria, $purgeMeta = true)
    {
        $table = $this->grabCommentsTableName();
        if ($purgeMeta) {
            $ids = $this->grabAllFromDatabase($table, 'comment_id', $criteria);
            if (!empty($ids)) {
                foreach ($ids as $id) {
                    $this->dontHaveCommentMetaInDatabase($id);
                }
            }
        }

        $this->dontHaveInDatabase($table, $criteria);
    }
public function dontHaveCommentInDatabase(array $criteria, $purgeMeta = true)
    {
        $table = $this->grabCommentsTableName();
        if ($purgeMeta) {
            $ids = $this->grabAllFromDatabase($table, 'comment_id', $criteria);
            if (!empty($ids)) {
                foreach ($ids as $id) {
                    $this->dontHaveCommentMetaInDatabase($id);
                }
            }
        }

        $this->dontHaveInDatabase($table, $criteria);
    }
public function dontHaveCommentInDatabase ( array $ criteria , $ purgeMeta = true ) { $ table = $ this -> grabCommentsTableName ( ) ; if ( $ purgeMeta ) { $ ids = $ this -> grabAllFromDatabase ( $ table , 'comment_id' , $ criteria ) ; if ( ! empty ( $ ids ) ) { foreach ( $ ids as $ id ) { $ this -> dontHaveCommentMetaInDatabase ( $ id ) ; } } } $ this -> dontHaveInDatabase ( $ table , $ criteria ) ; }
Removes an entry from the comments table.

@example
```php
$I->dontHaveCommentInDatabase(['comment_post_ID' => 23, 'comment_url' => 'http://example.copm']);
```

@param  array $criteria  An array of search criteria.
@param bool $purgeMeta If set to `true` then the meta for the comment will be purged too.

@throws \Exception In case of incoherent query criteria.
Removes an entry from the comments table .