You are here

public function MediaCkeditorViewModeTestHelper::testCreateNodeAndDelete in Media CKEditor 7.2

Tests the behavior of node and file deletion.

File

tests/media_ckeditor.test, line 149
Tests for media_ckeditor.module.

Class

MediaCkeditorViewModeTestHelper
Defines base class for media_ckeditor_view_mode test cases.

Code

public function testCreateNodeAndDelete() {

  // Create a new node with file markup.
  $nid = $this
    ->createNode(array(
    'test_field',
  ));

  // Delete the node.
  node_delete($nid);
  $node = node_load($nid);
  $this
    ->assertEqual(empty($node), TRUE, t('Node has been deleted.'));
}