GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nginx/html/Student/JimMartinson/Lab12/drupal/core/modules/views/src/Tests/ |
Upload File : |
<?php namespace Drupal\views\Tests; use Drupal\taxonomy\Tests\TaxonomyTestTrait; /** * Tests glossary functionality of taxonomy views. * * @group views */ class TaxonomyGlossaryTest extends ViewTestBase { use TaxonomyTestTrait; /** * Modules to enable. * * @var array */ public static $modules = ['taxonomy']; /** * Views used by this test. * * @var array */ public static $testViews = ['test_taxonomy_glossary']; /** * Taxonomy terms used by this test. * * @var \Drupal\taxonomy\Entity\Term[] */ protected $taxonomyTerms; protected function setUp() { parent::setUp(); $this->enableViewsTestModule(); /** @var \Drupal\taxonomy\Entity\Vocabulary $vocabulary */ $vocabulary = $this->createVocabulary(); for ($i = 0; $i < 10; $i++) { $this->taxonomyTerms[] = $this->createTerm($vocabulary); } } /** * Tests a taxonomy glossary view. */ public function testTaxonomyGlossaryView() { // Go the taxonomy glossary page for the first term. $this->drupalGet('test_taxonomy_glossary/' . substr($this->taxonomyTerms[0]->getName(), 0, 1)); $this->assertText($this->taxonomyTerms[0]->getName()); } }