Loading core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php +5 −5 Original line number Diff line number Diff line Loading @@ -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 [ [ 'data' => [ Loading Loading @@ -50,7 +50,7 @@ public function providerEncodeDecodeTests() { /** * Some data that should be able to be deserialized. */ public function providerDecodeTests() { public static function providerDecodeTests() { $data = [ // NULL files. ['', NULL], Loading Loading @@ -78,10 +78,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; } Loading @@ -89,7 +89,7 @@ public function providerDecodeTests() { /** * Tests different boolean serialization and deserialization. */ public function providerBoolTest() { public static function providerBoolTest() { return [ ['true', TRUE], ['TRUE', TRUE], Loading Loading
core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php +5 −5 Original line number Diff line number Diff line Loading @@ -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 [ [ 'data' => [ Loading Loading @@ -50,7 +50,7 @@ public function providerEncodeDecodeTests() { /** * Some data that should be able to be deserialized. */ public function providerDecodeTests() { public static function providerDecodeTests() { $data = [ // NULL files. ['', NULL], Loading Loading @@ -78,10 +78,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; } Loading @@ -89,7 +89,7 @@ public function providerDecodeTests() { /** * Tests different boolean serialization and deserialization. */ public function providerBoolTest() { public static function providerBoolTest() { return [ ['true', TRUE], ['TRUE', TRUE], Loading