You are here

protected function DraftyFieldCollectionTest::assertFieldCollectionNotArchivedCount in Drafty 7

1 call to DraftyFieldCollectionTest::assertFieldCollectionNotArchivedCount()
DraftyFieldCollectionTest::testDraftyFieldCollection in tests/DraftyFieldCollectionTest.test

File

tests/DraftyFieldCollectionTest.test, line 174

Class

DraftyFieldCollectionTest
Test drafty revision support with field collections.

Code

protected function assertFieldCollectionNotArchivedCount($count) {
  $not_archived_count = db_query('SELECT COUNT(*) FROM {field_collection_item} WHERE archived = 0')
    ->fetchField();
  $this
    ->assertEqual($not_archived_count, $count);
}