Commit cdfc9024 authored by alexpott's avatar alexpott

Issue #2443381 by pjbaert: Make all test functions public

parent 809854e0
......@@ -129,7 +129,7 @@ public function testBlockCategory() {
/**
* Tests removing a block display.
*/
protected function testDeleteBlockDisplay() {
public function testDeleteBlockDisplay() {
// To test all combinations possible we first place create two instances
// of the block display of the first view.
$block_1 = $this->drupalPlaceBlock('views_block:test_view_block-block_1', array('label' => 'test_view_block-block_1:1'));
......
......@@ -444,7 +444,7 @@ private function getContentUpdate($type) {
* Logs in the admin user, creates a database log event, and tests the
* functionality of clearing the database log through the admin interface.
*/
protected function testDBLogAddAndClear() {
public function testDBLogAddAndClear() {
global $base_root;
// Get a count of how many watchdog entries already exist.
$count = db_query('SELECT COUNT(*) FROM {watchdog}')->fetchField();
......@@ -479,7 +479,7 @@ protected function testDBLogAddAndClear() {
/**
* Tests the database log filter functionality at admin/reports/dblog.
*/
protected function testFilter() {
public function testFilter() {
$this->drupalLogin($this->adminUser);
// Clear the log to ensure that only generated entries will be found.
......
......@@ -32,7 +32,7 @@ protected function setUp() {
/**
* Test that the search form block can be placed and works.
*/
protected function testSearchFormBlock() {
public function testSearchFormBlock() {
// Test availability of the search block in the admin "Place blocks" list.
$this->drupalGet('admin/structure/block');
......
......@@ -44,7 +44,7 @@ protected function checkRequirements() {
/**
* Ensures test will not run when requirements are missing.
*/
protected function testCheckRequirements() {
public function testCheckRequirements() {
// If this is the main request, run the web test script and then assert
// that the child tests did not run.
if (!$this->isInChildSite()) {
......
......@@ -65,7 +65,7 @@ function testActiveClass() {
/**
* Test proper functioning of the query parameters.
*/
protected function testPagerQueryParameters() {
public function testPagerQueryParameters() {
// First page.
$this->drupalGet('pager-test/query-parameters');
$this->assertText(t('Pager calls: 0'), 'Initial call to pager shows 0 calls.');
......
......@@ -32,7 +32,7 @@ protected function setUp() {
$this->container->get('request_stack')->push($this->request);
}
protected function testHttpsSession() {
public function testHttpsSession() {
if ($this->request->isSecure()) {
$secure_session_name = $this->getSessionName();
$insecure_session_name = substr($this->getSessionName(), 1);
......
......@@ -26,7 +26,7 @@ class UserCreateFailMailTest extends WebTestBase {
/**
* Tests the create user administration page.
*/
protected function testUserAdd() {
public function testUserAdd() {
$user = $this->drupalCreateUser(array('administer users'));
$this->drupalLogin($user);
......
......@@ -27,7 +27,7 @@ class UserCreateTest extends WebTestBase {
* Create a user through the administration interface and ensure that it
* displays in the user list.
*/
protected function testUserAdd() {
public function testUserAdd() {
$user = $this->drupalCreateUser(array('administer users'));
$this->drupalLogin($user);
......
......@@ -47,7 +47,7 @@ protected function setUp() {
/**
* Runs other test methods.
*/
protected function testDateFilter() {
public function testDateFilter() {
$this->_testOffset();
$this->_testBetween();
$this->_testUiValidation();
......
......@@ -32,7 +32,7 @@ protected function setUp() {
/**
* Tests the attachment plugin.
*/
protected function testAttachment() {
public function testAttachment() {
$this->drupalGet('test-display-attachment');
$result = $this->xpath('//div[contains(@class, "view-content")]');
......
......@@ -172,7 +172,7 @@ function testViewsWizardAndListing() {
*
* @see \Drupal\views_ui\ViewAddForm::form()
*/
protected function testWizardForm() {
public function testWizardForm() {
$this->drupalGet('admin/structure/views/add');
$result = $this->xpath('//small[@id = "edit-label-machine-name-suffix"]');
......
......@@ -26,7 +26,7 @@ class PreviewTest extends UITestBase {
/**
* Tests contextual links in the preview form.
*/
protected function testPreviewContextual() {
public function testPreviewContextual() {
\Drupal::service('module_installer')->install(array('contextual'));
$this->resetAll();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment