You are here

function ClassifiedBasicTest::test1269828 in Classified Ads 6.3

Bug 1269828

Anonymous users view "n/a" in body if they do not have permission for the input format.

File

tests/classified_basic.test, line 260
Basic test for known bugs in previous versions.

Class

ClassifiedBasicTest

Code

function test1269828() {
  $this->group = __FUNCTION__;
  $types = array_keys(classified_node_info());
  $type = reset($types);
  $this
    ->createUsers(array(
    'creator',
  ));
  $this
    ->drupalLogin($this->creatorUser);
  $settings = array(
    'type' => $type,
    'format' => 2,
  );
  $node = $this
    ->createNode($settings);
  $this
    ->drupalLogout();
  $this
    ->drupalGet('node/' . $node->nid);
  $this
    ->assertNoText(t('n/a'), t('Anonymous users can see contents which they could not create.'), $this->group);
}