1 text.test | TextSummaryTestCase::testOnlyTextSummary() |
Test sending only summary.
File
- core/
modules/ field/ modules/ text/ tests/ text.test, line 532 - Tests for text.module.
Class
Code
function testOnlyTextSummary() {
// Login as post creator.
$this->backdropLogin($this->post_creator);
// Create post with summary but empty body.
$summary = $this->randomName();
$edit = array(
"title" => $this->randomName(),
"body[und][0][summary]" => $summary,
);
$this->backdropPost('node/add/post', $edit, t('Save'));
$node = $this->backdropGetNodeByTitle($edit['title']);
$this->assertIdentical($node->body['und'][0]['summary'], $summary, 'Post with with summary and no body has been submitted.');
}