protected function ContentTypeBuilderTest::editFormOne in Schema.org configuration tool (RDF UI) 8
Tests first form of Content Type Builder and its submission.
2 calls to ContentTypeBuilderTest::editFormOne()
- ContentTypeBuilderTest::testContentTypeCreate in rdf_builder/
src/ Tests/ ContentTypeBuilderTest.php - Tests submission of Content Type Builder and creation of content type.
- ContentTypeBuilderTest::testNavigateBack in rdf_builder/
src/ Tests/ ContentTypeBuilderTest.php - Tests back button of second form in Content Type Builder.
File
- rdf_builder/
src/ Tests/ ContentTypeBuilderTest.php, line 86
Class
- ContentTypeBuilderTest
- Tests the Content Type Builder.
Namespace
Drupal\rdf_builder\TestsCode
protected function editFormOne() {
$this->uri = 'admin/structure/types/rdf';
$this
->drupalGet($this->uri);
$this
->assertRaw('Create a content type by importing Schema.Org entity type.', "Form one displayed correctly.");
$this->rdf_type = "schema:Person";
$edit = array(
'rdf-type' => $this->rdf_type,
);
$this
->drupalPostForm(NULL, $edit, t('Next >>'));
$this
->assertRaw('Choose fields to start with.', 'Navigated to page two of the form.');
}