Skip to content

Commit

Permalink
test only one test
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Sep 11, 2023
1 parent 7aa9667 commit 5e9fc90
Show file tree
Hide file tree
Showing 51 changed files with 208 additions and 208 deletions.
18 changes: 9 additions & 9 deletions tests/codeception/acceptance/AuthenticatedPermissionsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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');
Expand All @@ -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');
Expand All @@ -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');
Expand All @@ -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', '<?php echo("injection test"); die(); ?>');
Expand All @@ -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');
Expand All @@ -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');
Expand All @@ -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),
Expand Down
24 changes: 12 additions & 12 deletions tests/codeception/acceptance/Content/BasicPageCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down Expand Up @@ -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]);

Expand All @@ -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);
Expand All @@ -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']);
Expand All @@ -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([
Expand All @@ -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);
Expand All @@ -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',
Expand Down Expand Up @@ -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');
Expand All @@ -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 */
Expand Down Expand Up @@ -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');
Expand All @@ -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),
Expand Down Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions tests/codeception/acceptance/Content/CoursesCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/codeception/acceptance/Content/CustomBlockCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
10 changes: 5 additions & 5 deletions tests/codeception/acceptance/Content/DefaultContentCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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',
Expand All @@ -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]);
Expand All @@ -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);
Expand All @@ -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');

Expand Down
20 changes: 10 additions & 10 deletions tests/codeception/acceptance/Content/EventsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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');
Expand All @@ -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');
Expand All @@ -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');
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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');
Expand All @@ -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',
Expand All @@ -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);
Expand Down
Loading

0 comments on commit 5e9fc90

Please sign in to comment.