diff options
author | David Rothstein <drothstein@gmail.com> | 2014-01-15 14:46:48 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-01-15 14:46:48 -0500 |
commit | fd710c02edfce294919a82a7e456c3d6b652c7fc (patch) | |
tree | 21f4cf47168bfd751e7333eed301a484b0af7bcd /modules/simpletest/tests/upgrade/upgrade.taxonomy.test | |
parent | 1687e382ea7faae78ffd0f316569bd3c41a05c9b (diff) | |
parent | dc791ec5839b52c7616bf66993122aa9a1336384 (diff) | |
download | brdo-fd710c02edfce294919a82a7e456c3d6b652c7fc.tar.gz brdo-fd710c02edfce294919a82a7e456c3d6b652c7fc.tar.bz2 |
Merge tag '7.26' into 7.x
7.26 release
Conflicts:
CHANGELOG.txt
includes/bootstrap.inc
Diffstat (limited to 'modules/simpletest/tests/upgrade/upgrade.taxonomy.test')
-rw-r--r-- | modules/simpletest/tests/upgrade/upgrade.taxonomy.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/simpletest/tests/upgrade/upgrade.taxonomy.test b/modules/simpletest/tests/upgrade/upgrade.taxonomy.test index e0142f4b9..58a4d5c17 100644 --- a/modules/simpletest/tests/upgrade/upgrade.taxonomy.test +++ b/modules/simpletest/tests/upgrade/upgrade.taxonomy.test @@ -56,6 +56,11 @@ class UpgradePathTaxonomyTestCase extends UpgradePathTestCase { $this->assertFalse(db_table_exists('taxonomy_vocabulary_node_type'), 'taxonomy_vocabulary_node_type has been removed.'); $this->assertFalse(db_table_exists('taxonomy_term_node'), 'taxonomy_term_node has been removed.'); + // Check that taxonomy_index has not stored nids of unpublished nodes. + $nids = db_query('SELECT nid from {node} WHERE status = :status', array(':status' => NODE_NOT_PUBLISHED))->fetchCol(); + $indexed_nids = db_query('SELECT DISTINCT nid from {taxonomy_index}')->fetchCol(); + $this->assertFalse(array_intersect($nids, $indexed_nids), 'No unpublished nid present in taxonomy_index'); + // Check that the node type 'page' has been associated to a taxonomy // reference field for each vocabulary. $voc_keys = array(); |