You are here

protected function DraftyFieldCollectionTest::assertFieldCollectionArchivedCount in Drafty 7

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

File

tests/DraftyFieldCollectionTest.test, line 169

Class

DraftyFieldCollectionTest
Test drafty revision support with field collections.

Code

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