/** * {@inheritdoc} */ protected function setUpProfile() { // Assert that the expected title is present. $this->assertEqual('Select an installation profile', $this->cssSelect('main h2')[0]); $result = $this->xpath('//span[contains(@class, :class) and contains(text(), :text)]', array(':class' => 'visually-hidden', ':text' => 'Select an installation profile')); $this->assertEqual(count($result), 1, "Title/Label not displayed when '#title_display' => 'invisible' attribute is set"); parent::setUpProfile(); }
/** * {@inheritdoc} */ protected function setUpProfile() { // Assert that the expected title is present. $this->assertEqual('Select an installation profile', $this->cssSelect('main h1')[0]); parent::setUpProfile(); }