$assert_session->
statusCodeEquals(200
);
$assert_session->
pageTextContains('Vocabulary name'
);
$assert_session->
linkNotExists('Add vocabulary'
);
} /**
* Tests the vocabulary overview permission.
*/
public function testTaxonomyVocabularyOverviewPermissions() { // Create two vocabularies, one with two terms, the other without any term.
/** @var \Drupal\taxonomy\Entity\Vocabulary $vocabulary1 , $vocabulary2 */
$vocabulary1 =
$this->
createVocabulary();
$vocabulary2 =
$this->
createVocabulary();
$vocabulary1_id =
$vocabulary1->
id();
$vocabulary2_id =
$vocabulary2->
id();
$this->
createTerm($vocabulary1);
$this->
createTerm($vocabulary1);
// Assert expected help texts on first vocabulary.
$vocabulary1_label = Unicode::
ucfirst($vocabulary1->
label());
$edit_help_text = "You can reorganize the terms in
$vocabulary1_label using their drag-and-drop handles, and group terms under a parent term by sliding them under and to the right of the parent.";
$no_edit_help_text = "
$vocabulary1_label contains the following terms.";