Commit 6749237d authored by catch's avatar catch
Browse files

Issue #2309673 by mitsuroseba: Add tests for node/add when no node types exist.

parent 9e51810d
......@@ -158,4 +158,27 @@ public function testAuthorAutocomplete() {
$this->assertEqual(count($result), 1, 'Ensure that the user does have access to the autocompletion');
* Check node/add when no node types exist.
function testNodeAddWithoutContentTypes () {
// Test /node/add page without content types.
foreach (entity_load_multiple('node_type') as $entity ) {
$admin_content_types = $this->drupalCreateUser(array('administer content types'));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment