You are here

function BiblioUiCrudTestCase::testCrud in Bibliography Module 7.3

Test CRUD of Biblios via the UI.

File

modules/biblio_ui/tests/Crud.test, line 37
Contains BiblioUiCrudTestCase

Class

BiblioUiCrudTestCase
@file Contains BiblioUiCrudTestCase

Code

function testCrud() {
  $title = $this
    ->randomName(8);

  // Create alias.
  $edit = array(
    'title' => $title,
    'biblio_year[und][0][value]' => 2014,
  );
  $this
    ->drupalPost('biblio/add/book', $edit, t('Save'));
  $this
    ->assertText($title, 'Biblio created.');
  $this
    ->assertResponse(200);
}