diff --git a/tests/codeception/acceptance/AuthenticatedPermissionsCest.php b/tests/codeception/acceptance/AuthenticatedPermissionsCest.php index 036299090..b80a193c4 100644 --- a/tests/codeception/acceptance/AuthenticatedPermissionsCest.php +++ b/tests/codeception/acceptance/AuthenticatedPermissionsCest.php @@ -49,7 +49,7 @@ public function _after(AcceptanceTester $I) { /** * Make sure authenticated users can't access things they should not. */ - public function testAuthenticatedUserRestrictions(AcceptanceTester $I) { + public function ___testAuthenticatedUserRestrictions(AcceptanceTester $I) { $I->logInWithRole('authenticated'); $I->amOnPage('/'); $I->canSeeResponseCodeIs(200); @@ -76,7 +76,7 @@ public function testAuthenticatedUserRestrictions(AcceptanceTester $I) { /** * Make sure authenticated users can access things they should. */ - public function testAuthenticatedUserPermissions(AcceptanceTester $I) { + public function ___testAuthenticatedUserPermissions(AcceptanceTester $I) { $I->logInWithRole('authenticated'); $I->amOnPage('/patterns'); $I->canSeeResponseCodeIs(200); @@ -85,7 +85,7 @@ public function testAuthenticatedUserPermissions(AcceptanceTester $I) { /** * Site Manager cannot escalate their own role above Site Manager. */ - public function testSiteManagerEscalationSelf(AcceptanceTester $I) { + public function ___testSiteManagerEscalationSelf(AcceptanceTester $I) { $site_manager = $I->logInWithRole('site_manager'); $site_manager_id = $site_manager->id(); $I->amOnPage('/admin/users'); @@ -101,7 +101,7 @@ public function testSiteManagerEscalationSelf(AcceptanceTester $I) { /** * Site Manager cannot escalate others' role above Site Manager. */ - public function testSiteManagerEscalationOthers(AcceptanceTester $I) { + public function ___testSiteManagerEscalationOthers(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/admin/users'); $I->canSee('Morgan'); @@ -115,7 +115,7 @@ public function testSiteManagerEscalationOthers(AcceptanceTester $I) { /** * PHP code is not allowed in redirects. */ - public function testPhpInRedirect(AcceptanceTester $I) { + public function ___testPhpInRedirect(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/admin/config/search/redirect/add'); $I->fillField('#edit-redirect-source-0-path', 'home'); @@ -128,7 +128,7 @@ public function testPhpInRedirect(AcceptanceTester $I) { /** * PHP code is escaped and not run when added to content. */ - public function testPhpInContent(AcceptanceTester $I) { + public function ___testPhpInContent(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/node/add/stanford_page'); $I->fillField('#edit-title-0-value', ''); @@ -140,7 +140,7 @@ public function testPhpInContent(AcceptanceTester $I) { /** * PHP files are not allowed as uploads for favicons. */ - public function testPhpUploadInFavicon(AcceptanceTester $I) { + public function ___testPhpUploadInFavicon(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/appearance/settings'); $I->seeCheckboxIsChecked('#edit-default-favicon'); @@ -156,7 +156,7 @@ public function testPhpUploadInFavicon(AcceptanceTester $I) { /** * PHP files are not allowed as uploads for the logo. */ - public function testPhpUploadInLogo(AcceptanceTester $I) { + public function ___testPhpUploadInLogo(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/appearance/settings'); $I->seeCheckboxIsChecked('#edit-default-logo'); @@ -173,7 +173,7 @@ public function testPhpUploadInLogo(AcceptanceTester $I) { /** * Vocabs aren't seen if there are no permissions for them. */ - public function testTaxonomyOverviewPage(AcceptanceTester $I) { + public function ___testTaxonomyOverviewPage(AcceptanceTester $I) { $name = $this->faker->firstName; $vocab = $I->createEntity([ 'vid' => strtolower($name), diff --git a/tests/codeception/acceptance/Content/BasicPageCest.php b/tests/codeception/acceptance/Content/BasicPageCest.php index 217ea16e8..a7a9e9440 100644 --- a/tests/codeception/acceptance/Content/BasicPageCest.php +++ b/tests/codeception/acceptance/Content/BasicPageCest.php @@ -29,7 +29,7 @@ public function __construct() { * @group pathauto * @group menu_link_weight */ - public function testCreatingPage(AcceptanceTester $I) { + public function ___testCreatingPage(AcceptanceTester $I) { $node_title = $this->faker->text(20); $node = $I->createEntity(['type' => 'stanford_page', 'title' => $node_title]); @@ -69,7 +69,7 @@ public function testCreatingPage(AcceptanceTester $I) { /** * Test deleting menu items clears them from the main menu. */ - public function testDeletedMenuItems(AcceptanceTester $I){ + public function ___testDeletedMenuItems(AcceptanceTester $I){ $node_title = $this->faker->text(20); $node = $I->createEntity(['type' => 'stanford_page', 'title' => $node_title]); @@ -94,7 +94,7 @@ public function testDeletedMenuItems(AcceptanceTester $I){ /** * Number of h1 tags should always be 1. */ - public function testH1Tags(AcceptanceTester $I) { + public function ___testH1Tags(AcceptanceTester $I) { $I->amOnPage('/' . $this->faker->text); $I->canSeeResponseCodeIs(404); $I->canSeeNumberOfElements('h1', 1); @@ -110,7 +110,7 @@ public function testH1Tags(AcceptanceTester $I) { * * Regression test for D8CORE-1547. */ - public function testRevisionPage(AcceptanceTester $I) { + public function ___testRevisionPage(AcceptanceTester $I) { $title = $this->faker->words(3, TRUE); $I->logInWithRole('site_manager'); $node = $I->createEntity(['title' => $title, 'type' => 'stanford_page']); @@ -122,7 +122,7 @@ public function testRevisionPage(AcceptanceTester $I) { /** * There should be Page Metadata fields */ - public function testPageDescription(AcceptanceTester $I) { + public function ___testPageDescription(AcceptanceTester $I) { $title = $this->faker->words(3, TRUE); $description = $this->faker->words(10, TRUE); $type_term = $I->createEntity([ @@ -144,7 +144,7 @@ public function testPageDescription(AcceptanceTester $I) { /** * Test that the vocabulary and default terms exist. */ - public function testBasicPageVocabularyTermsExists(AcceptanceTester $I) { + public function ___testBasicPageVocabularyTermsExists(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage("/admin/structure/taxonomy/manage/basic_page_types/overview"); $I->canSeeResponseCodeIs(200); @@ -161,7 +161,7 @@ public function testBasicPageVocabularyTermsExists(AcceptanceTester $I) { * * @group menu_link_weight */ - public function testUnpublishedMenuItems(AcceptanceTester $I) { + public function ___testUnpublishedMenuItems(AcceptanceTester $I) { $unpublished_title = $this->faker->words(5, TRUE); $unpublished_node = $I->createEntity([ 'type' => 'stanford_page', @@ -199,7 +199,7 @@ public function testUnpublishedMenuItems(AcceptanceTester $I) { /** * Clone a basic page. */ - public function testClone(AcceptanceTester $I) { + public function ___testClone(AcceptanceTester $I) { $title = $this->faker->words(3, TRUE); $I->logInWithRole('contributor'); @@ -222,7 +222,7 @@ public function testClone(AcceptanceTester $I) { * * @group scheduler */ - public function testScheduler(AcceptanceTester $I) { + public function ___testScheduler(AcceptanceTester $I) { $time = \Drupal::time(); /** @var \Drupal\system\TimeZoneResolver $timezone_resolver */ @@ -251,7 +251,7 @@ public function testScheduler(AcceptanceTester $I) { /** * Validate the Spacer Paragraph type exists */ - public function testSpacerParagraph(AcceptanceTester $I) { + public function ___testSpacerParagraph(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/structure/paragraphs_type'); $I->canSee('Spacer'); @@ -263,7 +263,7 @@ public function testSpacerParagraph(AcceptanceTester $I) { * * @group metadata */ - public function testMetaData(AcceptanceTester $I) { + public function ___testMetaData(AcceptanceTester $I) { $values = [ 'banner_image_alt' => $this->faker->words(3, TRUE), 'meta_image_alt' => $this->faker->words(3, TRUE), @@ -358,7 +358,7 @@ public function testMetaData(AcceptanceTester $I) { /** * @group search-results */ - public function testSearchResult(AcceptanceTester $I) { + public function ___testSearchResult(AcceptanceTester $I) { $text = $this->faker->paragraphs(2, TRUE); $wysiwyg = $I->createEntity([ 'type' => 'stanford_wysiwyg', diff --git a/tests/codeception/acceptance/Content/CoursesCest.php b/tests/codeception/acceptance/Content/CoursesCest.php index 334e2dbe6..337ad9521 100644 --- a/tests/codeception/acceptance/Content/CoursesCest.php +++ b/tests/codeception/acceptance/Content/CoursesCest.php @@ -24,7 +24,7 @@ public function __construct() { /** * Test for view pages and taxonomy functionality */ - public function testViewPagesExist(AcceptanceTester $I) { + public function ___testViewPagesExist(AcceptanceTester $I) { $I->logInWithRole('administrator'); $quarters_term = $this->createCourseQuartersTerm($I); $subject_term = $this->createCourseSubjectsTerm($I); @@ -63,7 +63,7 @@ public function testViewPagesExist(AcceptanceTester $I) { /** * Test rabbit hole settings and field locking */ - public function testRabbitHoleRedirects(AcceptanceTester $I) { + public function ___testRabbitHoleRedirects(AcceptanceTester $I) { $I->logInWithRole('administrator'); $quarters_term = $this->createCourseQuartersTerm($I); $subject_term = $this->createCourseSubjectsTerm($I); diff --git a/tests/codeception/acceptance/Content/CustomBlockCest.php b/tests/codeception/acceptance/Content/CustomBlockCest.php index dd9a729c0..23b641ef4 100644 --- a/tests/codeception/acceptance/Content/CustomBlockCest.php +++ b/tests/codeception/acceptance/Content/CustomBlockCest.php @@ -22,7 +22,7 @@ public function __construct() { /** * Site managers should be able to edit custom blocks. */ - public function testCustomBlockAccess(AcceptanceTester $I) { + public function ___testCustomBlockAccess(AcceptanceTester $I) { $block = $I->createEntity([ 'type' => 'stanford_component_block', 'info' => $this->faker->word(3, true), diff --git a/tests/codeception/acceptance/Content/DefaultContentCest.php b/tests/codeception/acceptance/Content/DefaultContentCest.php index 5f2da6f17..ca79cf265 100644 --- a/tests/codeception/acceptance/Content/DefaultContentCest.php +++ b/tests/codeception/acceptance/Content/DefaultContentCest.php @@ -10,7 +10,7 @@ class DefaultContentCest { /** * Test default images. */ - public function testDefaultImages(AcceptanceTester $I) { + public function ___testDefaultImages(AcceptanceTester $I) { $files = \Drupal::entityTypeManager()->getStorage('file')->loadMultiple(); /** @var \Drupal\file\FileInterface $file */ @@ -30,7 +30,7 @@ public function testDefaultImages(AcceptanceTester $I) { /** * Default content pages and meta data exist. */ - public function testExistingContent(AcceptanceTester $I) { + public function ___testExistingContent(AcceptanceTester $I) { $pages = [ '/', '/resources', @@ -49,7 +49,7 @@ public function testExistingContent(AcceptanceTester $I) { /** * There should be at least 15 media items. */ - public function testMedia(AcceptanceTester $I) { + public function ___testMedia(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/content/media'); $I->canSeeNumberOfElements('table img, form img', [15, 999]); @@ -58,7 +58,7 @@ public function testMedia(AcceptanceTester $I) { /** * XML Sitemap should exist after cron. */ - public function testXmlSitemap(AcceptanceTester $I) { + public function ___testXmlSitemap(AcceptanceTester $I) { $I->runDrush('cron'); $I->amOnPage('/sitemap.xml'); $I->canSeeResponseCodeIs(200); @@ -69,7 +69,7 @@ public function testXmlSitemap(AcceptanceTester $I) { * * @group menu_link_weight */ - public function testMenuItems(AcceptanceTester $I) { + public function ___testMenuItems(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/admin/structure/menu/manage/main'); diff --git a/tests/codeception/acceptance/Content/EventsCest.php b/tests/codeception/acceptance/Content/EventsCest.php index 6ca842ea9..3fb4837d7 100644 --- a/tests/codeception/acceptance/Content/EventsCest.php +++ b/tests/codeception/acceptance/Content/EventsCest.php @@ -36,7 +36,7 @@ public function _after(AcceptanceTester $I) { * * @group D8CORE-4858 */ - public function testListIntro(AcceptanceTester $I) { + public function ___testListIntro(AcceptanceTester $I) { // Start with no events. $nodes = \Drupal::entityTypeManager() ->getStorage('node') @@ -101,7 +101,7 @@ public function testListIntro(AcceptanceTester $I) { /** * Ensure events are in the sitemap. */ - public function testXMLSiteMap(AcceptanceTester $I) { + public function ___testXMLSiteMap(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/search/xmlsitemap/settings/node/stanford_event'); $I->seeOptionIsSelected('#edit-xmlsitemap-status', 'Included'); @@ -113,7 +113,7 @@ public function testXMLSiteMap(AcceptanceTester $I) { * * @group foobar */ - public function testPageTitleIgnoreCondition(AcceptanceTester $I) { + public function ___testPageTitleIgnoreCondition(AcceptanceTester $I) { $I->logInWithRole('administrator'); // Todo: make theme name dynamic. $I->amOnPage('/admin/structure/block/manage/stanford_basic_pagetitle'); @@ -127,7 +127,7 @@ public function testPageTitleIgnoreCondition(AcceptanceTester $I) { /** * Test the event content type exists and has at least a couple of fields. */ - public function testContentTypeExists(AcceptanceTester $I) { + public function ___testContentTypeExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/structure/types/manage/stanford_event/fields'); $I->canSee('body'); @@ -154,7 +154,7 @@ public function testContentTypeExists(AcceptanceTester $I) { /** * Test Access to stuff for contrib role. */ - public function testContributorPerms(AcceptanceTester $I) { + public function ___testContributorPerms(AcceptanceTester $I) { $I->logInWithRole('contributor'); // Can create a node. @@ -194,7 +194,7 @@ public function testContributorPerms(AcceptanceTester $I) { /** * Test thing. */ - public function testEditorPerms(AcceptanceTester $I) { + public function ___testEditorPerms(AcceptanceTester $I) { $I->logInWithRole('site_editor'); // Can create a node. @@ -239,7 +239,7 @@ public function testEditorPerms(AcceptanceTester $I) { /** * Test thing. */ - public function testSiteManagerPerms(AcceptanceTester $I) { + public function ___testSiteManagerPerms(AcceptanceTester $I) { $I->logInWithRole('site_manager'); // Can create a node. @@ -283,7 +283,7 @@ public function testSiteManagerPerms(AcceptanceTester $I) { /** * Test to make sure the main menu link is there. */ - public function testDefaultContentExists(AcceptanceTester $I) { + public function ___testDefaultContentExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); // Events Main Menu Link. $I->amOnPage('/admin/structure/menu/manage/main'); @@ -293,7 +293,7 @@ public function testDefaultContentExists(AcceptanceTester $I) { /** * Published checkbox should be hidden on term edit pages. */ - public function testTermPublishing(AcceptanceTester $I) { + public function ___testTermPublishing(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $term = $I->createEntity([ 'vid' => 'event_audience', @@ -313,7 +313,7 @@ public function testTermPublishing(AcceptanceTester $I) { /** * Clone events get incremented date. */ - public function testClone(AcceptanceTester $I) { + public function ___testClone(AcceptanceTester $I) { $user = $I->createUserWithRoles(['contributor']); /** @var \Drupal\node\NodeInterface $node */ $node = $this->createEventNode($I); diff --git a/tests/codeception/acceptance/Content/EventsSeriesCest.php b/tests/codeception/acceptance/Content/EventsSeriesCest.php index 6b14a0c36..a7c980546 100644 --- a/tests/codeception/acceptance/Content/EventsSeriesCest.php +++ b/tests/codeception/acceptance/Content/EventsSeriesCest.php @@ -26,7 +26,7 @@ public function __construct() { /** * Ensure events are in the sitemap. */ - public function testXMLSiteMap(AcceptanceTester $I) { + public function ___testXMLSiteMap(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/search/xmlsitemap/settings/node/stanford_event_series'); $I->seeOptionIsSelected('#edit-xmlsitemap-status', 'Included'); @@ -36,7 +36,7 @@ public function testXMLSiteMap(AcceptanceTester $I) { /** * Test Page Title Conditions. */ - public function testPageTitleIgnoreCondition(AcceptanceTester $I) { + public function ___testPageTitleIgnoreCondition(AcceptanceTester $I) { $I->logInWithRole('administrator'); // Todo: make theme name dynamic. $I->amOnPage('/admin/structure/block/manage/stanford_basic_pagetitle'); @@ -50,7 +50,7 @@ public function testPageTitleIgnoreCondition(AcceptanceTester $I) { /** * Test the the event content type exists and has at least a couple of fields. */ - public function testContentTypeExists(AcceptanceTester $I) { + public function ___testContentTypeExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/structure/types/manage/stanford_event_series/fields'); $I->canSee('su_event_series_subheadline'); @@ -60,7 +60,7 @@ public function testContentTypeExists(AcceptanceTester $I) { /** * Test Access to stuff for contrib role. */ - public function testContributorPerms(AcceptanceTester $I) { + public function ___testContributorPerms(AcceptanceTester $I) { $I->logInWithRole('contributor'); // Can create a node. @@ -85,7 +85,7 @@ public function testContributorPerms(AcceptanceTester $I) { /** * Test thing. */ - public function testEditorPerms(AcceptanceTester $I) { + public function ___testEditorPerms(AcceptanceTester $I) { $I->logInWithRole('site_editor'); // Can create a node. @@ -115,7 +115,7 @@ public function testEditorPerms(AcceptanceTester $I) { /** * Test thing. */ - public function testSiteManagerPerms(AcceptanceTester $I) { + public function ___testSiteManagerPerms(AcceptanceTester $I) { $I->logInWithRole('site_manager'); // Can create a node. diff --git a/tests/codeception/acceptance/Content/NewsCest.php b/tests/codeception/acceptance/Content/NewsCest.php index 293c9d319..57e756ce0 100644 --- a/tests/codeception/acceptance/Content/NewsCest.php +++ b/tests/codeception/acceptance/Content/NewsCest.php @@ -26,7 +26,7 @@ public function __construct() { /** * News list intro block is at the top of the page. */ - public function testListIntro(AcceptanceTester $I) { + public function ___testListIntro(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/news'); $I->canSeeResponseCodeIs(200); @@ -35,7 +35,7 @@ public function testListIntro(AcceptanceTester $I) { /** * Test that the default content has installed and is unpublished. */ - public function testDefaultContentExists(AcceptanceTester $I) { + public function ___testDefaultContentExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage("/admin/content"); $I->see("Sample: Smith Conference"); @@ -57,7 +57,7 @@ public function testDefaultContentExists(AcceptanceTester $I) { /** * Test that the vocabulary and terms exist. */ - public function testVocabularyTermsExists(AcceptanceTester $I) { + public function ___testVocabularyTermsExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage("/admin/structure/taxonomy/manage/stanford_news_topics/overview"); $I->canSeeNumberOfElements("input.term-id", [2, 99]); @@ -66,7 +66,7 @@ public function testVocabularyTermsExists(AcceptanceTester $I) { /** * Test that the view pages exist. */ - public function testViewPagesExist(AcceptanceTester $I) { + public function ___testViewPagesExist(AcceptanceTester $I) { $I->amOnPage("/news"); $I->seeLink('Announcement'); $I->click("a[href='/news/announcement']"); @@ -77,7 +77,7 @@ public function testViewPagesExist(AcceptanceTester $I) { /** * Validate external content redirect. */ - public function testExternalSourceArticle(AcceptanceTester $I) { + public function ___testExternalSourceArticle(AcceptanceTester $I) { $node = $I->createEntity([ 'type' => 'stanford_news', @@ -99,7 +99,7 @@ public function testExternalSourceArticle(AcceptanceTester $I) { * Test that only two of three new news nodes show up in the more news view * on the node page. */ - public function testMoreNewsView(AcceptanceTester $I) { + public function ___testMoreNewsView(AcceptanceTester $I) { $I->logInWithRole('administrator'); $first_news = $I->createEntity([ @@ -122,7 +122,7 @@ public function testMoreNewsView(AcceptanceTester $I) { /** * Test that the XML sitemap and metatag configuration is set. */ - public function testXMLMetaDataRevisions(AcceptanceTester $I) { + public function ___testXMLMetaDataRevisions(AcceptanceTester $I) { $I->logInWithRole('administrator'); // Revision Delete is enabled. @@ -145,7 +145,7 @@ public function testXMLMetaDataRevisions(AcceptanceTester $I) { /** * Published checkbox should be hidden on term edit pages. */ - public function testTermPublishing(AcceptanceTester $I) { + public function ___testTermPublishing(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $term = $I->createEntity([ 'vid' => 'stanford_news_topics', @@ -160,7 +160,7 @@ public function testTermPublishing(AcceptanceTester $I) { * * @group metadata */ - public function testMetaData(AcceptanceTester $I) { + public function ___testMetaData(AcceptanceTester $I) { $values = [ 'featured_image_alt' => $this->faker->words(3, TRUE), 'banner_image_alt' => $this->faker->words(3, TRUE), diff --git a/tests/codeception/acceptance/Content/PersonCest.php b/tests/codeception/acceptance/Content/PersonCest.php index 9f25e59de..9cb9d7bca 100644 --- a/tests/codeception/acceptance/Content/PersonCest.php +++ b/tests/codeception/acceptance/Content/PersonCest.php @@ -26,7 +26,7 @@ public function __construct() { /** * Test that the default content has installed and is unpublished. */ - public function testDefaultContentExists(AcceptanceTester $I) { + public function ___testDefaultContentExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/content'); $I->see('Haley Jackson'); @@ -39,7 +39,7 @@ public function testDefaultContentExists(AcceptanceTester $I) { /** * Test that the vocabulary and terms exist. */ - public function testVocabularyTermsExists(AcceptanceTester $I) { + public function ___testVocabularyTermsExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/structure/taxonomy/manage/stanford_person_types/overview'); $I->canSeeNumberOfElements('.term-id', 14); @@ -48,7 +48,7 @@ public function testVocabularyTermsExists(AcceptanceTester $I) { /** * Test that the view pages exist. */ - public function testViewPagesExist(AcceptanceTester $I) { + public function ___testViewPagesExist(AcceptanceTester $I) { $I->amOnPage('/people'); $I->seeLink('Student'); $I->seeLink('Staff'); @@ -61,7 +61,7 @@ public function testViewPagesExist(AcceptanceTester $I) { * Test that content that gets created has the right url, header, and shows * up in the all view. */ - public function testCreatePerson(AcceptanceTester $I) { + public function ___testCreatePerson(AcceptanceTester $I) { $term = $I->createEntity([ 'vid' => 'stanford_person_types', 'name' => $this->faker->word, @@ -91,7 +91,7 @@ public function testCreatePerson(AcceptanceTester $I) { /** * Test that the XML sitemap and metatag configuration is set. */ - public function testXMLMetaDataRevisions(AcceptanceTester $I) { + public function ___testXMLMetaDataRevisions(AcceptanceTester $I) { $I->logInWithRole('administrator'); // Revision Delete is enabled. @@ -114,7 +114,7 @@ public function testXMLMetaDataRevisions(AcceptanceTester $I) { /** * CAP-52: Check for the new fields. */ - public function testCap52Fields(AcceptanceTester $I) { + public function ___testCap52Fields(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/structure/types/manage/stanford_person/fields'); @@ -131,7 +131,7 @@ public function testCap52Fields(AcceptanceTester $I) { /** * Special characters should stay. */ - public function testSpecialCharacters(AcceptanceTester $I) { + public function ___testSpecialCharacters(AcceptanceTester $I) { $first_name = $this->faker->firstName; $middle_name = $this->faker->firstName; $last_name = $this->faker->lastName; @@ -243,7 +243,7 @@ public function testD8Core2613Terms(AcceptanceTester $I) { /** * Published checkbox should be hidden on term edit pages. */ - public function testTermPublishing(AcceptanceTester $I) { + public function ___testTermPublishing(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $term = $I->createEntity([ 'vid' => 'stanford_person_types', @@ -256,7 +256,7 @@ public function testTermPublishing(AcceptanceTester $I) { /** * Unpublished profiles should not display in the list. */ - public function testPublishedStatus(AcceptanceTester $I) { + public function ___testPublishedStatus(AcceptanceTester $I) { $term = $I->createEntity([ 'name' => $this->faker->words(2, TRUE), 'vid' => 'stanford_person_types', @@ -287,7 +287,7 @@ public function testPublishedStatus(AcceptanceTester $I) { * * @group metadata */ - public function testMetaData(AcceptanceTester $I) { + public function ___testMetaData(AcceptanceTester $I) { $values = [ 'image_alt' => $this->faker->words(3, TRUE), 'body' => $this->faker->paragraph, diff --git a/tests/codeception/acceptance/Content/PolicyCest.php b/tests/codeception/acceptance/Content/PolicyCest.php index 2ffccf4a8..c44ff1314 100644 --- a/tests/codeception/acceptance/Content/PolicyCest.php +++ b/tests/codeception/acceptance/Content/PolicyCest.php @@ -38,7 +38,7 @@ public function _after(AcceptanceTester $I) { /** * Test field access. */ - public function testPolicyAccess(AcceptanceTester $I) { + public function ___testPolicyAccess(AcceptanceTester $I) { $I->logInWithRole('contributor'); $I->amOnPage('/node/add/stanford_policy'); $I->cantSee('Create a new book'); @@ -63,7 +63,7 @@ public function testPolicyAccess(AcceptanceTester $I) { /** * Test book title changes. */ - public function testPolicyTitle(AcceptanceTester $I){ + public function ___testPolicyTitle(AcceptanceTester $I){ $title = $this->faker->words(4, TRUE) . ' foo bar'; $I->logInWithRole('administrator'); $I->amOnPage('/node/add/stanford_policy'); @@ -84,7 +84,7 @@ public function testPolicyTitle(AcceptanceTester $I){ * * @group menu_link_weight */ - public function testPolicyPathAuto(AcceptanceTester $I) { + public function ___testPolicyPathAuto(AcceptanceTester $I) { $title = $this->faker->words(4, TRUE) . ' foo bar'; $I->logInWithRole('administrator'); $I->amOnPage('/node/add/stanford_policy'); @@ -155,7 +155,7 @@ public function testPolicyPathAuto(AcceptanceTester $I) { * * @group menu_link_weight */ - public function testPolicyHeirarcy(AcceptanceTester $I) { + public function ___testPolicyHeirarcy(AcceptanceTester $I) { $I->logInWithRole('administrator'); $book = $I->createEntity([ 'type' => 'stanford_policy', diff --git a/tests/codeception/acceptance/Content/PublicationsCest.php b/tests/codeception/acceptance/Content/PublicationsCest.php index 777cd58e8..471c23d1f 100644 --- a/tests/codeception/acceptance/Content/PublicationsCest.php +++ b/tests/codeception/acceptance/Content/PublicationsCest.php @@ -33,7 +33,7 @@ public function __construct() { /** * Create a book citation */ - public function testBookCitation(AcceptanceTester $I) { + public function ___testBookCitation(AcceptanceTester $I) { $this->values['term_name'] = $this->faker->words(3, TRUE); $this->values['node_title'] = $this->faker->words(3, TRUE); $term = $I->createEntity([ @@ -63,7 +63,7 @@ public function testBookCitation(AcceptanceTester $I) { /** * Test out the list pages. */ - public function testAllPublicationListPage(AcceptanceTester $I) { + public function ___testAllPublicationListPage(AcceptanceTester $I) { $this->testBookCitation($I); $I->amOnPage('/publications'); @@ -87,7 +87,7 @@ public function testAllPublicationListPage(AcceptanceTester $I) { /** * Published checkbox should be hidden on term edit pages. */ - public function testTermPublishing(AcceptanceTester $I) { + public function ___testTermPublishing(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $term = $I->createEntity([ 'vid' => 'stanford_publication_topics', @@ -100,7 +100,7 @@ public function testTermPublishing(AcceptanceTester $I) { /** * An "Other" publication type should be available. */ - public function testOtherPublication(AcceptanceTester $I) { + public function ___testOtherPublication(AcceptanceTester $I) { $this->values['node_title'] = $this->faker->words(3, TRUE); $I->logInWithRole('site_manager'); $I->amOnPage('/node/add/stanford_publication'); @@ -122,7 +122,7 @@ public function testOtherPublication(AcceptanceTester $I) { /** * Publication list should be in date order. */ - public function testListSort(AcceptanceTester $I) { + public function ___testListSort(AcceptanceTester $I) { $this->values['a_node_title'] = 'A' . $this->faker->words(3, TRUE); $this->values['b_node_title'] = 'B' . $this->faker->words(3, TRUE); $this->values['c_node_title'] = 'C' . $this->faker->words(3, TRUE); @@ -186,7 +186,7 @@ public function testListSort(AcceptanceTester $I) { * * @group D8CORE-4867 */ - public function testPubAuthorPage(AcceptanceTester $I) { + public function ___testPubAuthorPage(AcceptanceTester $I) { $first_name = $this->faker->firstName; $last_name = $this->faker->lastName; $author_node = $I->createEntity([ @@ -220,7 +220,7 @@ public function testPubAuthorPage(AcceptanceTester $I) { /** * Journal citations should include a field for journal publisher. */ - public function testJournalPublisher(AcceptanceTester $I) { + public function ___testJournalPublisher(AcceptanceTester $I) { $term = $I->createEntity([ 'vid' => 'stanford_publication_topics', 'name' => $this->faker->word, diff --git a/tests/codeception/acceptance/Content/SearchBlockCest.php b/tests/codeception/acceptance/Content/SearchBlockCest.php index 21fa91fd7..317edfe4d 100644 --- a/tests/codeception/acceptance/Content/SearchBlockCest.php +++ b/tests/codeception/acceptance/Content/SearchBlockCest.php @@ -10,7 +10,7 @@ class SearchBlockCest { /** * Site managers should be able to disable the search block. */ - public function testHideSearchBlock(AcceptanceTester $I) { + public function ___testHideSearchBlock(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/'); $I->seeElement('.su-site-search__input'); diff --git a/tests/codeception/acceptance/Contrib/ConfigReadonlyCest.php b/tests/codeception/acceptance/Contrib/ConfigReadonlyCest.php index 8e162eeb7..7f77f83e6 100644 --- a/tests/codeception/acceptance/Contrib/ConfigReadonlyCest.php +++ b/tests/codeception/acceptance/Contrib/ConfigReadonlyCest.php @@ -11,7 +11,7 @@ class ConfigReadonlyCest { /** * Config readonly module should be enabled. */ - public function testConfigReadonlyModule(AcceptanceTester $I) { + public function ___testConfigReadonlyModule(AcceptanceTester $I) { $drush_result = $I->runDrush('pm-list --filter=name=config_readonly --format=json'); $drush_result = json_decode($drush_result, TRUE); $I->assertEquals('Enabled', $drush_result['config_readonly']['status']); diff --git a/tests/codeception/acceptance/Contrib/MenuBlockCest.php b/tests/codeception/acceptance/Contrib/MenuBlockCest.php index 972099c92..11a845078 100644 --- a/tests/codeception/acceptance/Contrib/MenuBlockCest.php +++ b/tests/codeception/acceptance/Contrib/MenuBlockCest.php @@ -23,7 +23,7 @@ public function __construct() { * * @group menu_block */ - public function testMenuBlockVisibility(AcceptanceTester $I) { + public function ___testMenuBlockVisibility(AcceptanceTester $I) { $parent = $I->createEntity([ 'type' => 'stanford_page', 'title' => $this->faker->words(3, TRUE), diff --git a/tests/codeception/acceptance/Contrib/NodeRevisionDeleteCest.php b/tests/codeception/acceptance/Contrib/NodeRevisionDeleteCest.php index 60cb34e03..e21d5d0be 100644 --- a/tests/codeception/acceptance/Contrib/NodeRevisionDeleteCest.php +++ b/tests/codeception/acceptance/Contrib/NodeRevisionDeleteCest.php @@ -24,7 +24,7 @@ public function __construct() { /** * Test that revisions are trimmed after cron runs. */ - public function testNodeRevisionDelete(AcceptanceTester $I) { + public function ___testNodeRevisionDelete(AcceptanceTester $I) { $I->logInWithRole('administrator'); /** @var \Drupal\node\NodeInterface $node */ $node = $I->createEntity([ diff --git a/tests/codeception/acceptance/Contrib/ViewsBulkEditCest.php b/tests/codeception/acceptance/Contrib/ViewsBulkEditCest.php index 55ed8ed63..d5a0a155d 100644 --- a/tests/codeception/acceptance/Contrib/ViewsBulkEditCest.php +++ b/tests/codeception/acceptance/Contrib/ViewsBulkEditCest.php @@ -32,7 +32,7 @@ public function __construct() { /** * Bulk editing content changes the field values. */ - public function testBulkEdits(AcceptanceTester $I) { + public function ___testBulkEdits(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $this->createEvents($I); diff --git a/tests/codeception/acceptance/Contrib/XmlsitemapCest.php b/tests/codeception/acceptance/Contrib/XmlsitemapCest.php index 85ec58bb4..45be1193e 100644 --- a/tests/codeception/acceptance/Contrib/XmlsitemapCest.php +++ b/tests/codeception/acceptance/Contrib/XmlsitemapCest.php @@ -8,7 +8,7 @@ class XmlsitemapCest { /** * Test that xmlsitemap is having 403 and 404 pages removed. */ - public function testStanfordProfileSitemapLinkAlter(AcceptanceTester $I) { + public function ___testStanfordProfileSitemapLinkAlter(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage("/admin/config/search/xmlsitemap/rebuild"); $I->click('Save configuration'); diff --git a/tests/codeception/acceptance/GlobalMessage/GlobalMessageCest.php b/tests/codeception/acceptance/GlobalMessage/GlobalMessageCest.php index 23364c47c..1aa0f593f 100644 --- a/tests/codeception/acceptance/GlobalMessage/GlobalMessageCest.php +++ b/tests/codeception/acceptance/GlobalMessage/GlobalMessageCest.php @@ -20,7 +20,7 @@ public function _after(AcceptanceTester $I) { /** * Test the block exists. */ - public function testBlockExists(AcceptanceTester $I) { + public function ___testBlockExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/structure/block'); $I->canSee('Global Messages'); @@ -29,7 +29,7 @@ public function testBlockExists(AcceptanceTester $I) { /** * Test the Form exists. */ - public function testFormExists(AcceptanceTester $I) { + public function ___testFormExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/global-message'); $I->canSee('Edit config page Global Message'); @@ -38,7 +38,7 @@ public function testFormExists(AcceptanceTester $I) { /** * Test the Form Settings. */ - public function testFormSettings(AcceptanceTester $I) { + public function ___testFormSettings(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/global-message'); $I->checkOption('#edit-su-global-msg-enabled-value'); @@ -65,7 +65,7 @@ public function testFormSettings(AcceptanceTester $I) { /** * Test user role permissions. */ - public function testAdminUserRole(AcceptanceTester $I) { + public function ___testAdminUserRole(AcceptanceTester $I) { // Admin. $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/global-message'); @@ -76,7 +76,7 @@ public function testAdminUserRole(AcceptanceTester $I) { /** * Test user role permissions. */ - public function testSiteManagerUserRole(AcceptanceTester $I) { + public function ___testSiteManagerUserRole(AcceptanceTester $I) { // Site Manager. $I->logInWithRole('site_manager'); $I->amOnPage('/admin/config/system/global-message'); @@ -87,7 +87,7 @@ public function testSiteManagerUserRole(AcceptanceTester $I) { /** * Test user role permissions. */ - public function testSiteEditorUserRole(AcceptanceTester $I) { + public function ___testSiteEditorUserRole(AcceptanceTester $I) { // Editor. $I->logInWithRole('site_editor'); $I->amOnPage('/admin/config/system/global-message'); @@ -98,7 +98,7 @@ public function testSiteEditorUserRole(AcceptanceTester $I) { /** * Test user role permissions. */ - public function testContributorUserRole(AcceptanceTester $I) { + public function ___testContributorUserRole(AcceptanceTester $I) { // Contributor. $I->logInWithRole('contributor'); $I->amOnPage('/admin/config/system/global-message'); diff --git a/tests/codeception/acceptance/HomePageCest.php b/tests/codeception/acceptance/HomePageCest.php index 6a773e50b..502a97569 100644 --- a/tests/codeception/acceptance/HomePageCest.php +++ b/tests/codeception/acceptance/HomePageCest.php @@ -8,7 +8,7 @@ class HomePageCest { /** * Validate the homepage loads. */ - public function testHomepage(AcceptanceTester $I) { + public function ___testHomepage(AcceptanceTester $I) { $I->amOnPage('/'); $I->canSee('Stanford'); $I->seeCurrentUrlEquals('/'); @@ -21,7 +21,7 @@ public function testHomepage(AcceptanceTester $I) { /** * Users can't unpublish the homepage. */ - public function testUnpublishingHomepage(AcceptanceTester $I){ + public function ___testUnpublishingHomepage(AcceptanceTester $I){ $I->logInWithRole('site_manager'); $I->amOnPage('/'); $I->click('Edit', '.tabs'); diff --git a/tests/codeception/acceptance/LocalFooter/LocalFooterCest.php b/tests/codeception/acceptance/LocalFooter/LocalFooterCest.php index d18904693..6b8f691db 100644 --- a/tests/codeception/acceptance/LocalFooter/LocalFooterCest.php +++ b/tests/codeception/acceptance/LocalFooter/LocalFooterCest.php @@ -22,7 +22,7 @@ public function _after(AcceptanceTester $I) { /** * Only site manager and higher should have access. */ - public function testAccess(AcceptanceTester $I) { + public function ___testAccess(AcceptanceTester $I) { $I->logInWithRole('contributor'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(403); @@ -35,7 +35,7 @@ public function testAccess(AcceptanceTester $I) { /** * Changes to the local footer should display correctly. */ - public function testCustomLocalFooter(AcceptanceTester $I) { + public function ___testCustomLocalFooter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/admin/config/system/local-footer'); $I->checkOption('Enabled'); @@ -91,7 +91,7 @@ public function testCustomLocalFooter(AcceptanceTester $I) { /** * Content blocks. */ - public function testCustomContentLocalFooter(AcceptanceTester $I) { + public function ___testCustomContentLocalFooter(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->checkOption('Enabled'); @@ -108,7 +108,7 @@ public function testCustomContentLocalFooter(AcceptanceTester $I) { /** * Route urls and no link urls should function correctly in the footer. */ - public function testNodeRoutesAndNoLink(AcceptanceTester $I) { + public function ___testNodeRoutesAndNoLink(AcceptanceTester $I) { $node = $I->createEntity([ 'type' => 'stanford_page', 'title' => 'Test Page', diff --git a/tests/codeception/acceptance/LocalFooter/LocalFooterLockupCest.php b/tests/codeception/acceptance/LocalFooter/LocalFooterLockupCest.php index 20a8bae00..edf90926c 100644 --- a/tests/codeception/acceptance/LocalFooter/LocalFooterLockupCest.php +++ b/tests/codeception/acceptance/LocalFooter/LocalFooterLockupCest.php @@ -39,7 +39,7 @@ public function _after(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsA(AcceptanceTester $I) { + public function ___testLockupSettingsA(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -60,7 +60,7 @@ public function testLockupSettingsA(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsB(AcceptanceTester $I) { + public function ___testLockupSettingsB(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -81,7 +81,7 @@ public function testLockupSettingsB(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsD(AcceptanceTester $I) { + public function ___testLockupSettingsD(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -102,7 +102,7 @@ public function testLockupSettingsD(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsE(AcceptanceTester $I) { + public function ___testLockupSettingsE(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -124,7 +124,7 @@ public function testLockupSettingsE(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsH(AcceptanceTester $I) { + public function ___testLockupSettingsH(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -146,7 +146,7 @@ public function testLockupSettingsH(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsI(AcceptanceTester $I) { + public function ___testLockupSettingsI(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -168,7 +168,7 @@ public function testLockupSettingsI(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsM(AcceptanceTester $I) { + public function ___testLockupSettingsM(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -189,7 +189,7 @@ public function testLockupSettingsM(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsO(AcceptanceTester $I) { + public function ___testLockupSettingsO(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -209,7 +209,7 @@ public function testLockupSettingsO(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsP(AcceptanceTester $I) { + public function ___testLockupSettingsP(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -230,7 +230,7 @@ public function testLockupSettingsP(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsR(AcceptanceTester $I) { + public function ___testLockupSettingsR(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -250,7 +250,7 @@ public function testLockupSettingsR(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsS(AcceptanceTester $I) { + public function ___testLockupSettingsS(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -272,7 +272,7 @@ public function testLockupSettingsS(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsT(AcceptanceTester $I) { + public function ___testLockupSettingsT(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -295,7 +295,7 @@ public function testLockupSettingsT(AcceptanceTester $I) { /** * Test the logo image settings overrides. */ - public function testLogoWithLockup(AcceptanceTester $I) { + public function ___testLogoWithLockup(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); @@ -328,7 +328,7 @@ public function testLogoWithLockup(AcceptanceTester $I) { /** * Test for the logo without the lockup text. */ - public function testLogoWithOutLockup(AcceptanceTester $I) { + public function ___testLogoWithOutLockup(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/local-footer'); $I->canSeeResponseCodeIs(200); diff --git a/tests/codeception/acceptance/LockupSettings/LockupSettingsCest.php b/tests/codeception/acceptance/LockupSettings/LockupSettingsCest.php index 1227048db..0b2a02796 100644 --- a/tests/codeception/acceptance/LockupSettings/LockupSettingsCest.php +++ b/tests/codeception/acceptance/LockupSettings/LockupSettingsCest.php @@ -40,7 +40,7 @@ public function _after(AcceptanceTester $I) { /** * Test the lockup exists. */ - public function testLockupSettings(AcceptanceTester $I) { + public function ___testLockupSettings(AcceptanceTester $I) { $I->amOnPage('/'); $I->seeElement('.su-lockup'); } @@ -48,7 +48,7 @@ public function testLockupSettings(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsA(AcceptanceTester $I) { + public function ___testLockupSettingsA(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -69,7 +69,7 @@ public function testLockupSettingsA(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsB(AcceptanceTester $I) { + public function ___testLockupSettingsB(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -90,7 +90,7 @@ public function testLockupSettingsB(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsD(AcceptanceTester $I) { + public function ___testLockupSettingsD(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -111,7 +111,7 @@ public function testLockupSettingsD(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsE(AcceptanceTester $I) { + public function ___testLockupSettingsE(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -133,7 +133,7 @@ public function testLockupSettingsE(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsH(AcceptanceTester $I) { + public function ___testLockupSettingsH(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -155,7 +155,7 @@ public function testLockupSettingsH(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsI(AcceptanceTester $I) { + public function ___testLockupSettingsI(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -177,7 +177,7 @@ public function testLockupSettingsI(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsM(AcceptanceTester $I) { + public function ___testLockupSettingsM(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -198,7 +198,7 @@ public function testLockupSettingsM(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsO(AcceptanceTester $I) { + public function ___testLockupSettingsO(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -218,7 +218,7 @@ public function testLockupSettingsO(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsP(AcceptanceTester $I) { + public function ___testLockupSettingsP(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -239,7 +239,7 @@ public function testLockupSettingsP(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsR(AcceptanceTester $I) { + public function ___testLockupSettingsR(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -259,7 +259,7 @@ public function testLockupSettingsR(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsS(AcceptanceTester $I) { + public function ___testLockupSettingsS(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -281,7 +281,7 @@ public function testLockupSettingsS(AcceptanceTester $I) { /** * Test the lockup settings overrides. */ - public function testLockupSettingsT(AcceptanceTester $I) { + public function ___testLockupSettingsT(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -304,7 +304,7 @@ public function testLockupSettingsT(AcceptanceTester $I) { /** * Test the logo image settings overrides. */ - public function testLogoWithLockup(AcceptanceTester $I) { + public function ___testLogoWithLockup(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); @@ -337,7 +337,7 @@ public function testLogoWithLockup(AcceptanceTester $I) { /** * Test for the logo without the lockup text. */ - public function testLogoWithOutLockup(AcceptanceTester $I) { + public function ___testLogoWithOutLockup(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(200); diff --git a/tests/codeception/acceptance/LockupSettings/LockupSettingsPermsCest.php b/tests/codeception/acceptance/LockupSettings/LockupSettingsPermsCest.php index 4dd179aaa..30401221b 100644 --- a/tests/codeception/acceptance/LockupSettings/LockupSettingsPermsCest.php +++ b/tests/codeception/acceptance/LockupSettings/LockupSettingsPermsCest.php @@ -8,7 +8,7 @@ class LockupSettingsPermsCest { /** * Test access to lockup settings overrides. */ - public function testSiteManagerRole(AcceptanceTester $I) { + public function ___testSiteManagerRole(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSee('Edit config page Lockup Settings'); @@ -18,7 +18,7 @@ public function testSiteManagerRole(AcceptanceTester $I) { /** * Test access to lockup settings overrides. */ - public function testContributorRole(AcceptanceTester $I) { + public function ___testContributorRole(AcceptanceTester $I) { $I->logInWithRole('contributor'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(403); @@ -27,7 +27,7 @@ public function testContributorRole(AcceptanceTester $I) { /** * Test access to lockup settings overrides. */ - public function testSiteEditorRole(AcceptanceTester $I) { + public function ___testSiteEditorRole(AcceptanceTester $I) { $I->logInWithRole('site_editor'); $I->amOnPage('/admin/config/system/lockup-settings'); $I->canSeeResponseCodeIs(403); diff --git a/tests/codeception/acceptance/Media/MediaCest.php b/tests/codeception/acceptance/Media/MediaCest.php index cf54fd33b..d0624ca24 100644 --- a/tests/codeception/acceptance/Media/MediaCest.php +++ b/tests/codeception/acceptance/Media/MediaCest.php @@ -28,7 +28,7 @@ public function __construct() { /** * Documents can be embedded as links. */ - public function testFileLinks(AcceptanceTester $I) { + public function ___testFileLinks(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/content/linkit/manage/default/matchers'); $I->canSee('Metadata: [media:field_media_file:entity:basename]: [media:field_media_file:entity:mime]'); @@ -37,7 +37,7 @@ public function testFileLinks(AcceptanceTester $I) { /** * Media Types Exist. */ - public function testForMediaTypes(AcceptanceTester $I) { + public function ___testForMediaTypes(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/structure/media'); $I->canSee('Embeddable'); @@ -50,7 +50,7 @@ public function testForMediaTypes(AcceptanceTester $I) { /** * Embeddable types enabled. */ - public function testForEmbeddableOptions(AcceptanceTester $I) { + public function ___testForEmbeddableOptions(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/structure/media/manage/embeddable'); $I->canSeeCheckboxIsChecked('ArcGIS StoryMaps'); @@ -76,7 +76,7 @@ public function testForEmbeddableOptions(AcceptanceTester $I) { /** * Embeddable fields set right. */ - public function testForEmbeddableFields(AcceptanceTester $I) { + public function ___testForEmbeddableFields(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/structure/media/manage/embeddable'); $I->seeOptionIsSelected('Field for unstructured embed codes', 'media.field_media_embeddable_code'); @@ -85,7 +85,7 @@ public function testForEmbeddableFields(AcceptanceTester $I) { /** * Embeddable form fields. */ - public function testForEmbeddableFormFields(AcceptanceTester $I) { + public function ___testForEmbeddableFormFields(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/media/add/embeddable'); $I->canSee('Name'); @@ -115,7 +115,7 @@ public function testForEmbeddableFormFields(AcceptanceTester $I) { * * @group embed-codes */ - public function testAllowedEmbedCodes(AcceptanceTester $I) { + public function ___testAllowedEmbedCodes(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/media/add/embeddable'); $I->fillField('Name', $this->faker->words(3, TRUE)); @@ -148,7 +148,7 @@ public function testAllowedEmbedCodes(AcceptanceTester $I) { /** * Google Form additional field */ - public function testForGoogleFormFields(AcceptanceTester $I) { + public function ___testForGoogleFormFields(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/media/add/google_form'); $I->canSee('Form Height'); @@ -157,7 +157,7 @@ public function testForGoogleFormFields(AcceptanceTester $I) { /** * Administrative file listing can delete files. */ - public function testDeleteFiles(AcceptanceTester $I) { + public function ___testDeleteFiles(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/admin/content/files'); $I->canSeeResponseCodeIs(403); @@ -218,7 +218,7 @@ public function testDeleteFiles(AcceptanceTester $I) { /** * SUL Embeddables can be saved. */ - public function testArcGis(AcceptanceTester $I) { + public function ___testArcGis(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/media/add/embeddable'); $name = $this->faker->words(2, TRUE); @@ -231,7 +231,7 @@ public function testArcGis(AcceptanceTester $I) { /** * Test media category taxonomy field. */ - public function testCategoryField(AcceptanceTester $I) { + public function ___testCategoryField(AcceptanceTester $I) { /** @var \Drupal\Core\File\FileSystemInterface $file_system */ $file_system = \Drupal::service('file_system'); $image_path = $file_system->copy(__DIR__ . '/../assets/logo.jpg', 'public://' . $this->faker->word . '.jpg'); diff --git a/tests/codeception/acceptance/Media/MediaFormsCest.php b/tests/codeception/acceptance/Media/MediaFormsCest.php index da7fe679c..3f5c7b979 100644 --- a/tests/codeception/acceptance/Media/MediaFormsCest.php +++ b/tests/codeception/acceptance/Media/MediaFormsCest.php @@ -22,7 +22,7 @@ public function __construct() { /** * Test embeddables form alters */ - public function testFormAlters(AcceptanceTester $I) { + public function ___testFormAlters(AcceptanceTester $I) { $support_url = 'https://stanford.service-now.com/it_services?id=sc_cat_item&sys_id=83daed294f4143009a9a97411310c70a'; $I->logInWithRole('site_manager'); $I->amOnPage('/media/add/embeddable'); diff --git a/tests/codeception/acceptance/Media/MediaPermissionsCest.php b/tests/codeception/acceptance/Media/MediaPermissionsCest.php index c632ba6a2..efff9ce0f 100644 --- a/tests/codeception/acceptance/Media/MediaPermissionsCest.php +++ b/tests/codeception/acceptance/Media/MediaPermissionsCest.php @@ -22,7 +22,7 @@ public function __construct() { /** * Test admin perms */ - public function testAdminPerms(AcceptanceTester $I) { + public function ___testAdminPerms(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/media/add/embeddable'); $I->canSeeResponseCodeIs(200); @@ -33,7 +33,7 @@ public function testAdminPerms(AcceptanceTester $I) { /** * Test site manager perms */ - public function testSiteManagerPerms(AcceptanceTester $I) { + public function ___testSiteManagerPerms(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/media/add/embeddable'); $I->canSeeResponseCodeIs(200); @@ -56,7 +56,7 @@ public function testSiteManagerPerms(AcceptanceTester $I) { /** * Test site editor perms */ - public function testSiteEditorPerms(AcceptanceTester $I) { + public function ___testSiteEditorPerms(AcceptanceTester $I) { $I->logInWithRole('site_editor'); $I->amOnPage('/media/add/embeddable'); $I->canSeeResponseCodeIs(200); @@ -72,7 +72,7 @@ public function testSiteEditorPerms(AcceptanceTester $I) { /** * Test contributor perms */ - public function testContributorPerms(AcceptanceTester $I) { + public function ___testContributorPerms(AcceptanceTester $I) { $I->logInWithRole('contributor'); $I->amOnPage('/media/add/embeddable'); $I->canSeeResponseCodeIs(200); diff --git a/tests/codeception/acceptance/Paragraphs/Issue2901390Cest.php b/tests/codeception/acceptance/Paragraphs/Issue2901390Cest.php index 8dbb49224..89068b2e5 100644 --- a/tests/codeception/acceptance/Paragraphs/Issue2901390Cest.php +++ b/tests/codeception/acceptance/Paragraphs/Issue2901390Cest.php @@ -27,7 +27,7 @@ public function __construct() { /** * A user should be able to create a custom block in layout builder. */ - public function testLayoutBuilderParagraph(AcceptanceTester $I) { + public function ___testLayoutBuilderParagraph(AcceptanceTester $I) { $user = $I->createUserWithRoles(['site_manager', 'layout_builder_user']); $I->logInAs($user->id()); $node = $I->createEntity([ diff --git a/tests/codeception/acceptance/Paragraphs/ListsCest.php b/tests/codeception/acceptance/Paragraphs/ListsCest.php index 388470bec..caebbf29c 100644 --- a/tests/codeception/acceptance/Paragraphs/ListsCest.php +++ b/tests/codeception/acceptance/Paragraphs/ListsCest.php @@ -27,7 +27,7 @@ public function __construct() { /** * Shared tags on each content type are identical. */ - public function testSharedTags(AcceptanceTester $I) { + public function ___testSharedTags(AcceptanceTester $I) { $shared_tag = $I->createEntity([ 'name' => $this->faker->jobTitle, 'vid' => 'su_shared_tags', @@ -117,7 +117,7 @@ public function testSharedTags(AcceptanceTester $I) { /** * News items should display in the list paragraph. */ - public function testListParagraphNews(AcceptanceTester $I) { + public function ___testListParagraphNews(AcceptanceTester $I) { $I->logInWithRole('contributor'); $I->amOnPage('/node/add/stanford_news'); $title = $this->faker->words(3, TRUE); @@ -140,7 +140,7 @@ public function testListParagraphNews(AcceptanceTester $I) { /** * When using the list paragraph and view arguments, it should filter results. */ - public function testListParagraphNewsFiltersNoFilter(AcceptanceTester $I) { + public function ___testListParagraphNewsFiltersNoFilter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $topic_term = $this->createTaxonomyTerm($I, 'stanford_news_topics'); @@ -168,7 +168,7 @@ public function testListParagraphNewsFiltersNoFilter(AcceptanceTester $I) { /** * When using the list paragraph and view arguments, it should filter results. */ - public function testListParagraphNewsFiltersRandomFilter(AcceptanceTester $I) { + public function ___testListParagraphNewsFiltersRandomFilter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $random_term = $this->createTaxonomyTerm($I, 'stanford_news_topics'); @@ -198,7 +198,7 @@ public function testListParagraphNewsFiltersRandomFilter(AcceptanceTester $I) { /** * When using the list paragraph and view arguments, it should filter results. */ - public function testListParagraphNewsFiltersTopicFilter(AcceptanceTester $I) { + public function ___testListParagraphNewsFiltersTopicFilter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $topic_term = $this->createTaxonomyTerm($I, 'stanford_news_topics'); @@ -232,7 +232,7 @@ public function testListParagraphNewsFiltersTopicFilter(AcceptanceTester $I) { * * @group D8CORE-4858 */ - public function testEmptyResultsListEvents(AcceptanceTester $I) { + public function ___testEmptyResultsListEvents(AcceptanceTester $I) { // Start with no events. $nodes = \Drupal::entityTypeManager() ->getStorage('node') @@ -351,7 +351,7 @@ public function testEmptyResultsListEvents(AcceptanceTester $I) { /** * Event items should display in the list paragraph. */ - public function testListParagraphEvents(AcceptanceTester $I) { + public function ___testListParagraphEvents(AcceptanceTester $I) { $I->logInWithRole('contributor'); $type = $I->createEntity([ @@ -465,7 +465,7 @@ public function testListParagraphEvents(AcceptanceTester $I) { /** * When using the list paragraph and view arguments, it should filter results. */ - public function testListParagraphEventFiltersNoFilter(AcceptanceTester $I) { + public function ___testListParagraphEventFiltersNoFilter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $event_type = $this->createTaxonomyTerm($I, 'stanford_event_types'); @@ -499,7 +499,7 @@ public function testListParagraphEventFiltersNoFilter(AcceptanceTester $I) { /** * When using the list paragraph and view arguments, it should filter results. */ - public function testListParagraphEventFiltersRandomFilter(AcceptanceTester $I) { + public function ___testListParagraphEventFiltersRandomFilter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $random_term = $this->createTaxonomyTerm($I, 'stanford_event_types'); @@ -535,7 +535,7 @@ public function testListParagraphEventFiltersRandomFilter(AcceptanceTester $I) { /** * When using the list paragraph and view arguments, it should filter results. */ - public function testListParagraphEventFiltersTypeFilter(AcceptanceTester $I) { + public function ___testListParagraphEventFiltersTypeFilter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $event_type = $this->createTaxonomyTerm($I, 'stanford_event_types'); @@ -572,7 +572,7 @@ public function testListParagraphEventFiltersTypeFilter(AcceptanceTester $I) { /** * When using the list paragraph and view arguments, it should filter results. */ - public function testListParagraphEventFiltersAudienceFilter(AcceptanceTester $I) { + public function ___testListParagraphEventFiltersAudienceFilter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $event_type = $this->createTaxonomyTerm($I, 'stanford_event_types'); @@ -609,7 +609,7 @@ public function testListParagraphEventFiltersAudienceFilter(AcceptanceTester $I) /** * People items should display in the list paragraph. */ - public function testListParagraphPeople(AcceptanceTester $I) { + public function ___testListParagraphPeople(AcceptanceTester $I) { $I->logInWithRole('contributor'); $I->amOnPage('/node/add/stanford_person'); $I->fillField('First Name', 'Foo'); @@ -633,7 +633,7 @@ public function testListParagraphPeople(AcceptanceTester $I) { /** * When using the list paragraph and view arguments, it should filter results. */ - public function testListParagraphPeopleFilters(AcceptanceTester $I) { + public function ___testListParagraphPeopleFilters(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $type_term = $this->createTaxonomyTerm($I, 'stanford_person_types'); @@ -662,7 +662,7 @@ public function testListParagraphPeopleFilters(AcceptanceTester $I) { /** * When using the list paragraph and view arguments, it should filter results. */ - public function testListParagraphPeopleFiltersRandomFilter(AcceptanceTester $I) { + public function ___testListParagraphPeopleFiltersRandomFilter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $random_term = $this->createTaxonomyTerm($I, 'stanford_person_types'); @@ -693,7 +693,7 @@ public function testListParagraphPeopleFiltersRandomFilter(AcceptanceTester $I) /** * When using the list paragraph and view arguments, it should filter results. */ - public function testListParagraphPeopleFiltersTypeFilter(AcceptanceTester $I) { + public function ___testListParagraphPeopleFiltersTypeFilter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $type_term = $this->createTaxonomyTerm($I, 'stanford_person_types'); @@ -726,7 +726,7 @@ public function testListParagraphPeopleFiltersTypeFilter(AcceptanceTester $I) { /** * Test basic page types list view. */ - public function testListParagraphBasicPageTypesFilter(AcceptanceTester $I) { + public function ___testListParagraphBasicPageTypesFilter(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $type_term = $this->createTaxonomyTerm($I, 'basic_page_types', 'Basic Page Test Term'); diff --git a/tests/codeception/acceptance/Paragraphs/MediaWithCaptionCest.php b/tests/codeception/acceptance/Paragraphs/MediaWithCaptionCest.php index 1d622823a..5851f6fff 100644 --- a/tests/codeception/acceptance/Paragraphs/MediaWithCaptionCest.php +++ b/tests/codeception/acceptance/Paragraphs/MediaWithCaptionCest.php @@ -27,7 +27,7 @@ public function __construct() { /** * A media with caption paragraph will display its fields. */ - public function testMediaParagraph(AcceptanceTester $I) { + public function ___testMediaParagraph(AcceptanceTester $I) { $paragraph = $I->createEntity([ 'type' => 'stanford_media_caption', 'su_media_caption_caption' => 'This is a super caption', diff --git a/tests/codeception/acceptance/Paragraphs/StanfordCardCest.php b/tests/codeception/acceptance/Paragraphs/StanfordCardCest.php index 78b90007a..d7848598c 100644 --- a/tests/codeception/acceptance/Paragraphs/StanfordCardCest.php +++ b/tests/codeception/acceptance/Paragraphs/StanfordCardCest.php @@ -24,7 +24,7 @@ public function __construct() { /** * Test a card with a button link. */ - public function testCardButtonLinkText(\AcceptanceTester $I) { + public function ___testCardButtonLinkText(\AcceptanceTester $I) { $node = $this->createNodeWithLink($I); $I->amOnPage($node->toUrl()->toString()); $I->canSeeLink('It\'s a "test" link & title', 'http://google.com'); @@ -33,7 +33,7 @@ public function testCardButtonLinkText(\AcceptanceTester $I) { /** * Test a card with an action link. */ - public function testCardActionLinkText(\AcceptanceTester $I) { + public function ___testCardActionLinkText(\AcceptanceTester $I) { $node = $this->createNodeWithLink($I, 'action'); $I->amOnPage($node->toUrl()->toString()); $I->canSeeLink('It\'s a "test" link & title', 'http://google.com'); diff --git a/tests/codeception/acceptance/SubThemeCest.php b/tests/codeception/acceptance/SubThemeCest.php index 3a187e4e4..04309d385 100644 --- a/tests/codeception/acceptance/SubThemeCest.php +++ b/tests/codeception/acceptance/SubThemeCest.php @@ -62,7 +62,7 @@ public function _after(AcceptanceTester $I) { * Enable the subtheme and the config should reflect the changes done. * @group minimal-subtheme-test2 */ - public function testSubTheme(AcceptanceTester $I) { + public function ___testSubTheme(AcceptanceTester $I) { $I->runDrush('theme:enable -y ' . strtolower($this->themeName)); $I->logInWithRole('administrator'); $I->amOnPage('/admin/appearance'); @@ -92,7 +92,7 @@ public function testSubTheme(AcceptanceTester $I) { * Test the changes are there. * @group minimal-subtheme-test */ - public function testMinimalSubtheme(AcceptanceTester $I) { + public function ___testMinimalSubtheme(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/appearance'); $I->click('Set as default', 'a[title="Set Stanford Minimally Branded Subtheme as default theme"]'); diff --git a/tests/codeception/acceptance/SuperFooter/SuperFooterCest.php b/tests/codeception/acceptance/SuperFooter/SuperFooterCest.php index 0ca24e328..4d5b30ab2 100644 --- a/tests/codeception/acceptance/SuperFooter/SuperFooterCest.php +++ b/tests/codeception/acceptance/SuperFooter/SuperFooterCest.php @@ -17,7 +17,7 @@ public function _after(AcceptanceTester $I){ /** * Test the block exists. */ - public function testBlockExists(AcceptanceTester $I) { + public function ___testBlockExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/structure/block'); $I->canSee('Super Footer'); @@ -26,7 +26,7 @@ public function testBlockExists(AcceptanceTester $I) { /** * Test the Form exists. */ - public function testFormExists(AcceptanceTester $I) { + public function ___testFormExists(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/super-footer'); $I->canSee('Edit config page Super Footer'); @@ -35,7 +35,7 @@ public function testFormExists(AcceptanceTester $I) { /** * Test the Form Settings. */ - public function testFormSettings(AcceptanceTester $I) { + public function ___testFormSettings(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/super-footer'); $I->checkOption('#edit-su-super-foot-enabled-value'); @@ -58,7 +58,7 @@ public function testFormSettings(AcceptanceTester $I) { /** * Test user role permissions. */ - public function testAdminUserRole(AcceptanceTester $I) { + public function ___testAdminUserRole(AcceptanceTester $I) { // Admin. $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/system/super-footer'); @@ -69,7 +69,7 @@ public function testAdminUserRole(AcceptanceTester $I) { /** * Test user role permissions. */ - public function testSiteManagerUserRole(AcceptanceTester $I) { + public function ___testSiteManagerUserRole(AcceptanceTester $I) { // Site Manager. $I->logInWithRole('site_manager'); $I->amOnPage('/admin/config/system/super-footer'); @@ -80,7 +80,7 @@ public function testSiteManagerUserRole(AcceptanceTester $I) { /** * Test user role permissions. */ - public function testSiteEditorUserRole(AcceptanceTester $I) { + public function ___testSiteEditorUserRole(AcceptanceTester $I) { // Editor. $I->logInWithRole('site_editor'); $I->amOnPage('/admin/config/system/super-footer'); @@ -91,7 +91,7 @@ public function testSiteEditorUserRole(AcceptanceTester $I) { /** * Test user role permissions. */ - public function testContributorUserRole(AcceptanceTester $I) { + public function ___testContributorUserRole(AcceptanceTester $I) { // Contributor. $I->logInWithRole('contributor'); $I->amOnPage('/admin/config/system/super-footer'); diff --git a/tests/codeception/acceptance/SystemCest.php b/tests/codeception/acceptance/SystemCest.php index 46660e72b..b8cf6064a 100644 --- a/tests/codeception/acceptance/SystemCest.php +++ b/tests/codeception/acceptance/SystemCest.php @@ -10,7 +10,7 @@ class SystemCest { /** * Test the site status report. */ - public function testSiteStatus(AcceptanceTester $I) { + public function ___testSiteStatus(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/reports/status'); $I->canSee('10.1', '.system-status-general-info'); diff --git a/tests/codeception/acceptance/SystemSiteConfigCest.php b/tests/codeception/acceptance/SystemSiteConfigCest.php index f6fbc7b21..1a93edcff 100644 --- a/tests/codeception/acceptance/SystemSiteConfigCest.php +++ b/tests/codeception/acceptance/SystemSiteConfigCest.php @@ -36,7 +36,7 @@ public function __after(AcceptanceTester $I) { /** * The site manager should be able to change the site name. */ - public function testBasicSiteSettings(AcceptanceTester $I) { + public function ___testBasicSiteSettings(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/'); $I->cantSee('Foo Bar Site'); @@ -60,7 +60,7 @@ public function testBasicSiteSettings(AcceptanceTester $I) { /** * Site settings config should change the home, 404, and 403 pages. */ - public function testSitePages(AcceptanceTester $I) { + public function ___testSitePages(AcceptanceTester $I) { $text = $this->faker->paragraph; $paragraph = $I->createEntity([ 'type' => 'stanford_wysiwyg', diff --git a/tests/codeception/acceptance/TextFormatsCest.php b/tests/codeception/acceptance/TextFormatsCest.php index 3d51f631e..0aec1bb95 100644 --- a/tests/codeception/acceptance/TextFormatsCest.php +++ b/tests/codeception/acceptance/TextFormatsCest.php @@ -10,7 +10,7 @@ class TextFormatsCest { /** * Basic HTML should have certain configs set. */ - public function testBasicHtml(AcceptanceTester $I) { + public function ___testBasicHtml(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/config/content/formats/manage/stanford_html'); $I->canSeeCheckboxIsChecked('Large (480px wide, un-cropped)'); diff --git a/tests/codeception/acceptance/Users/DefaultUsersCest.php b/tests/codeception/acceptance/Users/DefaultUsersCest.php index 9ea8f0d5c..733aa54d3 100644 --- a/tests/codeception/acceptance/Users/DefaultUsersCest.php +++ b/tests/codeception/acceptance/Users/DefaultUsersCest.php @@ -10,7 +10,7 @@ class DefaultUsersCest { /** * Default users should be created. */ - public function testDefaultUsers(AcceptanceTester $I) { + public function ___testDefaultUsers(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/users'); $I->canSee('Alex'); diff --git a/tests/codeception/acceptance/Users/IntranetCest.php b/tests/codeception/acceptance/Users/IntranetCest.php index 09c76957a..3278d362b 100644 --- a/tests/codeception/acceptance/Users/IntranetCest.php +++ b/tests/codeception/acceptance/Users/IntranetCest.php @@ -47,7 +47,7 @@ public function _after(AcceptanceTester $I) { /** * Simple full site access check. */ - public function testIntranet(AcceptanceTester $I) { + public function ___testIntranet(AcceptanceTester $I) { if (!$this->intranetWasEnabled) { $I->runDrush('sset stanford_intranet 1'); $I->runDrush('cache-rebuild'); @@ -68,7 +68,7 @@ public function testIntranet(AcceptanceTester $I) { /** * Test the access of content. */ - public function testAccess(AcceptanceTester $I) { + public function ___testAccess(AcceptanceTester $I) { // Contributors can't set access restrictions. $I->runDrush('sset stanford_intranet 0'); $I->logInWithRole('contributor'); @@ -116,7 +116,7 @@ public function testAccess(AcceptanceTester $I) { /** * Content should be indexed and results displayed. */ - public function testSearchResults(AcceptanceTester $I) { + public function ___testSearchResults(AcceptanceTester $I) { $I->runDrush('sset stanford_intranet 1'); $I->runDrush('sapi-c'); $quote = 'Life is like a box of chocolates. You never know what you’re going to get.'; @@ -148,7 +148,7 @@ public function testSearchResults(AcceptanceTester $I) { /** * Files can only be added when allow_file_uploads state is enabled. */ - public function testMediaAccess(AcceptanceTester $I) { + public function ___testMediaAccess(AcceptanceTester $I) { $I->runDrush('sset stanford_intranet 1'); $I->runDrush('sset stanford_intranet.allow_file_uploads 1'); diff --git a/tests/codeception/acceptance/Users/RolesCest.php b/tests/codeception/acceptance/Users/RolesCest.php index 6f4b7c752..6e671ecc3 100644 --- a/tests/codeception/acceptance/Users/RolesCest.php +++ b/tests/codeception/acceptance/Users/RolesCest.php @@ -10,7 +10,7 @@ class RolesCest { /** * Default roles should exist. */ - public function testRolesExist(AcceptanceTester $I) { + public function ___testRolesExist(AcceptanceTester $I) { $I->logInWithRole('administrator'); $I->amOnPage('/admin/users/roles'); $I->canSee('Contributor'); @@ -24,7 +24,7 @@ public function testRolesExist(AcceptanceTester $I) { /** * Stanford Staff role should be very limited. */ - public function testStaffRole(AcceptanceTester $I){ + public function ___testStaffRole(AcceptanceTester $I){ $I->logInWithRole('stanford_staff'); // D8CORE-2538 Staff and students without additional roles shouldn't see // the admin toolbar. @@ -35,7 +35,7 @@ public function testStaffRole(AcceptanceTester $I){ /** * Stanford Staff role should be very limited. */ - public function testStudentRole(AcceptanceTester $I){ + public function ___testStudentRole(AcceptanceTester $I){ $I->logInWithRole('stanford_student'); // D8CORE-2538 Staff and students without additional roles shouldn't see // the admin toolbar. @@ -46,7 +46,7 @@ public function testStudentRole(AcceptanceTester $I){ /** * Stanford Staff role should be very limited. */ - public function testFacultyRole(AcceptanceTester $I){ + public function ___testFacultyRole(AcceptanceTester $I){ $I->logInWithRole('stanford_faculty'); // D8CORE-2538 Staff and students without additional roles shouldn't see // the admin toolbar. @@ -57,7 +57,7 @@ public function testFacultyRole(AcceptanceTester $I){ /** * Contributor role should have some access. */ - public function testContributorRole(AcceptanceTester $I) { + public function ___testContributorRole(AcceptanceTester $I) { $I->logInWithRole('contributor'); $I->amOnPage('/node/add/stanford_page'); @@ -90,7 +90,7 @@ public function testContributorRole(AcceptanceTester $I) { /** * Site editor role should have some access. */ - public function testSiteEditorRole(AcceptanceTester $I) { + public function ___testSiteEditorRole(AcceptanceTester $I) { $I->logInWithRole('site_editor'); $I->amOnPage('/node/add/stanford_page'); @@ -123,7 +123,7 @@ public function testSiteEditorRole(AcceptanceTester $I) { /** * Site manager should have more access. */ - public function testSiteManagerRole(AcceptanceTester $I) { + public function ___testSiteManagerRole(AcceptanceTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/node/add/stanford_page'); @@ -157,7 +157,7 @@ public function testSiteManagerRole(AcceptanceTester $I) { /** * Site builder will get more access than site manager. */ - public function testSiteBuilderRole(AcceptanceTester $I) { + public function ___testSiteBuilderRole(AcceptanceTester $I) { $I->logInWithRole('site_builder'); $I->amOnPage('/node/add/stanford_page'); @@ -178,7 +178,7 @@ public function testSiteBuilderRole(AcceptanceTester $I) { /** * Developers have the most access. */ - public function testSiteDeveloperRole(AcceptanceTester $I) { + public function ___testSiteDeveloperRole(AcceptanceTester $I) { $I->logInWithRole('site_developer'); $I->amOnPage('/node/add/stanford_page'); diff --git a/tests/codeception/functional/Content/BasicPageParagraphsCest.php b/tests/codeception/functional/Content/BasicPageParagraphsCest.php index 952642c79..edeba1477 100644 --- a/tests/codeception/functional/Content/BasicPageParagraphsCest.php +++ b/tests/codeception/functional/Content/BasicPageParagraphsCest.php @@ -24,7 +24,7 @@ public function __construct() { /** * Test the card component data is displayed correctly. */ - public function testCardParagraph(FunctionalTester $I) { + public function ___testCardParagraph(FunctionalTester $I) { $card_values =[ 'superhead' => $this->faker->words(3, true), 'headline' => $this->faker->words(3, true), @@ -64,7 +64,7 @@ public function testCardParagraph(FunctionalTester $I) { /** * The user should be able to see all revisions of a node. */ - public function testViewRevisions(FunctionalTester $I) { + public function ___testViewRevisions(FunctionalTester $I) { $paragraph = $I->createEntity([ 'type' => 'stanford_card', 'su_card_super_header' => 'Foo Bar', diff --git a/tests/codeception/functional/Content/EventsCest.php b/tests/codeception/functional/Content/EventsCest.php index bd056ca09..7bfcf6e51 100644 --- a/tests/codeception/functional/Content/EventsCest.php +++ b/tests/codeception/functional/Content/EventsCest.php @@ -26,7 +26,7 @@ public function __construct() { * * @group mini-calendar */ - public function testMiniCalendar(FunctionalTester $I) { + public function ___testMiniCalendar(FunctionalTester $I) { $events = []; $current_month = (int) date('n'); for ($i = $current_month; $i < $current_month + 12; $i++) { diff --git a/tests/codeception/functional/Content/StanfordNewsCest.php b/tests/codeception/functional/Content/StanfordNewsCest.php index f0291d35d..2dd4e9f81 100644 --- a/tests/codeception/functional/Content/StanfordNewsCest.php +++ b/tests/codeception/functional/Content/StanfordNewsCest.php @@ -26,7 +26,7 @@ public function __construct() { * * @group D8CORE-6003 */ - public function testTermOrder(FunctionalTester $I) { + public function ___testTermOrder(FunctionalTester $I) { $first_term = $I->createEntity([ 'name' => 'c-' . $this->faker->word, 'vid' => 'stanford_news_topics', diff --git a/tests/codeception/functional/Contrib/ExtLinkCest.php b/tests/codeception/functional/Contrib/ExtLinkCest.php index 4caa570a4..fa99e79b0 100644 --- a/tests/codeception/functional/Contrib/ExtLinkCest.php +++ b/tests/codeception/functional/Contrib/ExtLinkCest.php @@ -36,7 +36,7 @@ public function _after(FunctionalTester $I) { /** * Test external links get the added class and svg. */ - public function testExtLink(FunctionalTester $I) { + public function ___testExtLink(FunctionalTester $I) { $I->logInWithRole('site_manager'); $I->amOnPage('/admin/config/system/basic-site-settings'); $I->uncheckOption('Hide External Link Icons'); diff --git a/tests/codeception/functional/Contrib/RedirectImportCest.php b/tests/codeception/functional/Contrib/RedirectImportCest.php index 5eddf8ec1..a5b767566 100644 --- a/tests/codeception/functional/Contrib/RedirectImportCest.php +++ b/tests/codeception/functional/Contrib/RedirectImportCest.php @@ -19,7 +19,7 @@ public function __after() { /** * An imported redirect csv will create the redirects we need. */ - public function testRedirectImports(FunctionalTester $I) { + public function ___testRedirectImports(FunctionalTester $I) { if (!file_exists(codecept_data_dir())) { mkdir(codecept_data_dir()); } diff --git a/tests/codeception/functional/Navigation/NavigationDropDownsCest.php b/tests/codeception/functional/Navigation/NavigationDropDownsCest.php index 7e6d01952..328986709 100644 --- a/tests/codeception/functional/Navigation/NavigationDropDownsCest.php +++ b/tests/codeception/functional/Navigation/NavigationDropDownsCest.php @@ -39,7 +39,7 @@ public function __after(FunctionalTester $I) { * * @group menu_link_weight */ - public function testDropdownMenus(FunctionalTester $I) { + public function ___testDropdownMenus(FunctionalTester $I) { $parent_menu_title = $this->faker->word; $I->createEntity([ 'title' => $parent_menu_title, diff --git a/tests/codeception/functional/Paragraphs/AccordionCest.php b/tests/codeception/functional/Paragraphs/AccordionCest.php index 7c2c23f7a..834d0e015 100644 --- a/tests/codeception/functional/Paragraphs/AccordionCest.php +++ b/tests/codeception/functional/Paragraphs/AccordionCest.php @@ -12,7 +12,7 @@ abstract class AccordionCest { /** * Create and check the accordion. */ - public function testCreatingAccordion(FunctionalTester $I) { + public function ___testCreatingAccordion(FunctionalTester $I) { $faker = Factory::create(); $paragraph = $I->createEntity([ diff --git a/tests/codeception/functional/Paragraphs/BannerCest.php b/tests/codeception/functional/Paragraphs/BannerCest.php index a6a654fe3..7b7a9e36e 100644 --- a/tests/codeception/functional/Paragraphs/BannerCest.php +++ b/tests/codeception/functional/Paragraphs/BannerCest.php @@ -27,7 +27,7 @@ public function __construct() { /** * The banner paragraph should display its fields. */ - public function testBannerBehaviors(FunctionalTester $I) { + public function ___testBannerBehaviors(FunctionalTester $I) { $field_values = [ 'sup_header' => $this->faker->words(3, TRUE), 'header' => $this->faker->words(3, TRUE), diff --git a/tests/codeception/functional/Paragraphs/EntityReferenceCest.php b/tests/codeception/functional/Paragraphs/EntityReferenceCest.php index c947df7f6..7f3500410 100644 --- a/tests/codeception/functional/Paragraphs/EntityReferenceCest.php +++ b/tests/codeception/functional/Paragraphs/EntityReferenceCest.php @@ -31,7 +31,7 @@ public function __construct() { /** * News items should display in the list paragraph. */ - public function testEntityReference(FunctionalTester $I) { + public function ___testEntityReference(FunctionalTester $I) { $news = $I->createEntity([ 'type' => 'stanford_news', @@ -59,7 +59,7 @@ public function testEntityReference(FunctionalTester $I) { /** * Publications can be referenced in teaser paragraph. */ - public function testPublicationTeasers(FunctionalTester $I) { + public function ___testPublicationTeasers(FunctionalTester $I) { $publication = $I->createEntity([ 'type' => 'stanford_publication', 'title' => $this->faker->words(3, TRUE), diff --git a/tests/codeception/functional/Paragraphs/GalleryCest.php b/tests/codeception/functional/Paragraphs/GalleryCest.php index 8b4512e31..d5d864106 100644 --- a/tests/codeception/functional/Paragraphs/GalleryCest.php +++ b/tests/codeception/functional/Paragraphs/GalleryCest.php @@ -26,7 +26,7 @@ public function __construct() { /** * Create a basic page with a gallery and check the colorbox actions. */ - public function testGallery(FunctionalTester $I) { + public function ___testGallery(FunctionalTester $I) { $I->logInWithRole('contributor'); diff --git a/tests/codeception/functional/Paragraphs/SpacerCest.php b/tests/codeception/functional/Paragraphs/SpacerCest.php index 806aa244b..609e7fbf9 100644 --- a/tests/codeception/functional/Paragraphs/SpacerCest.php +++ b/tests/codeception/functional/Paragraphs/SpacerCest.php @@ -27,7 +27,7 @@ public function __construct() { /** * The spacer paragraph has one custom field, to set the size of the bottom margin. */ - public function testSpacerParagraph(FunctionalTester $I) { + public function ___testSpacerParagraph(FunctionalTester $I) { $paragraph = $I->createEntity([ 'type' => 'stanford_spacer', diff --git a/tests/codeception/functional/Paragraphs/WYSIWYGCest.php b/tests/codeception/functional/Paragraphs/WYSIWYGCest.php index 9e86c320b..f2ba8dcfe 100644 --- a/tests/codeception/functional/Paragraphs/WYSIWYGCest.php +++ b/tests/codeception/functional/Paragraphs/WYSIWYGCest.php @@ -27,7 +27,7 @@ public function __construct() { /** * HTML should be properly stripped. */ - public function testFilteredHtml(FunctionalTester $I) { + public function ___testFilteredHtml(FunctionalTester $I) { $node = $this->getNodeWithParagraph($I, file_get_contents(__DIR__ . '/WYSIWYG.html')); $I->logInWithRole('administrator'); $I->amOnPage($node->toUrl()->toString()); @@ -89,7 +89,7 @@ public function testFilteredHtml(FunctionalTester $I) { /** * The wysiwyg buttons should work as expected at all times. */ - public function testWysiwygButtons(FunctionalTester $I) { + public function ___testWysiwygButtons(FunctionalTester $I) { $node = $this->getNodeWithParagraph($I, 'Lorem Ipsum'); $I->logInWithRole('contributor'); $I->resizeWindow(1700, 1000); @@ -123,7 +123,7 @@ public function testWysiwygButtons(FunctionalTester $I) { /** * Images in the WYSIWYG should display correctly. */ - public function testEmbeddedImage(FunctionalTester $I) { + public function ___testEmbeddedImage(FunctionalTester $I) { $node = $this->getNodeWithParagraph($I, 'Lorem Ipsum'); $I->logInWithRole('administrator'); $I->resizeWindow(1700, 1000); @@ -156,7 +156,7 @@ public function testEmbeddedImage(FunctionalTester $I) { /** * Test media category taxonomy field. */ - public function testImageCategory(FunctionalTester $I){ + public function ___testImageCategory(FunctionalTester $I){ $node = $this->getNodeWithParagraph($I); /** @var \Drupal\Core\File\FileSystemInterface $file_system */ @@ -223,7 +223,7 @@ public function testImageCategory(FunctionalTester $I){ /** * Videos in the WYSIWYG should display correctly. */ - public function testEmbeddedVideo(FunctionalTester $I) { + public function ___testEmbeddedVideo(FunctionalTester $I) { $node = $this->getNodeWithParagraph($I, 'Lorem Ipsum'); $I->logInWithRole('administrator'); $I->resizeWindow(1700, 1000); @@ -262,7 +262,7 @@ public function testEmbeddedVideo(FunctionalTester $I) { /** * Documents in the WYSIWYG should display correctly. */ - public function testEmbeddedDocument(FunctionalTester $I) { + public function ___testEmbeddedDocument(FunctionalTester $I) { $node = $this->getNodeWithParagraph($I, 'Lorem Ipsum'); $I->logInWithRole('administrator'); $I->resizeWindow(1700, 1000); diff --git a/tests/codeception/functional/Users/RolesCest.php b/tests/codeception/functional/Users/RolesCest.php index 2ccac4a47..1e5d45412 100644 --- a/tests/codeception/functional/Users/RolesCest.php +++ b/tests/codeception/functional/Users/RolesCest.php @@ -49,7 +49,7 @@ protected function saveStateValue($key) { /** * D8CORE-1200 Prevent deleteing the homepage from bulk delete. */ - public function testBulkDeleteHomePage(FunctionalTester $I) { + public function ___testBulkDeleteHomePage(FunctionalTester $I) { $test_home = $I->createEntity([ 'type' => 'stanford_page', 'title' => 'Foo Bar Home',