Skip to content
Snippets Groups Projects
Verified Commit 2e02b4c2 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3442295 by mondrake: Change @dataprovider to static in YamlTestBase

(cherry picked from commit 4cdc4313)
parent 37818989
Branches
Tags
2 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.
Pipeline #154052 passed with warnings
Pipeline: drupal

#154110

    Pipeline: drupal

    #154104

      Pipeline: drupal

      #154100

        +7
        ......@@ -14,7 +14,7 @@ abstract class YamlTestBase extends TestCase {
        /**
        * Some data that should be able to be serialized.
        */
        public function providerEncodeDecodeTests() {
        public static function providerEncodeDecodeTests() {
        return [
        [
        'foo' => 'bar',
        ......@@ -46,7 +46,7 @@ public function providerEncodeDecodeTests() {
        /**
        * Some data that should be able to be deserialized.
        */
        public function providerDecodeTests() {
        public static function providerDecodeTests() {
        $data = [
        // NULL files.
        ['', NULL],
        ......@@ -74,10 +74,10 @@ public function providerDecodeTests() {
        ];
        // 1.2 Bool values.
        foreach ($this->providerBoolTest() as $test) {
        foreach (static::providerBoolTest() as $test) {
        $data[] = ['bool: ' . $test[0], ['bool' => $test[1]]];
        }
        $data = array_merge($data, $this->providerBoolTest());
        $data = array_merge($data, static::providerBoolTest());
        return $data;
        }
        ......@@ -85,7 +85,7 @@ public function providerDecodeTests() {
        /**
        * Tests different boolean serialization and deserialization.
        */
        public function providerBoolTest() {
        public static function providerBoolTest() {
        return [
        ['true', TRUE],
        ['TRUE', TRUE],
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment