Browse Source

Fix deprecations in tests

3.1.x
Chi 4 years ago
parent
commit
e364f07c26
  1. 2
      tests/src/Functional/TwigTweakTest.php
  2. 2
      tests/src/Kernel/AbstractExtractorTestCase.php
  3. 2
      tests/src/Kernel/BlockViewBuilderTest.php
  4. 10
      tests/src/Kernel/CacheMetadataExtractorTest.php
  5. 2
      tests/src/Kernel/EntityFormViewBuilderTest.php
  6. 2
      tests/src/Kernel/EntityViewBuilderTest.php
  7. 2
      tests/src/Kernel/FieldViewBuilderTest.php
  8. 2
      tests/src/Kernel/ImageViewBuilderTest.php
  9. 2
      tests/src/Kernel/MenuViewBuilderTest.php
  10. 2
      tests/src/Kernel/RegionViewBuilderTest.php

2
tests/src/Functional/TwigTweakTest.php

@ -30,7 +30,7 @@ final class TwigTweakTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'twig_tweak',
'twig_tweak_test',
'views',

2
tests/src/Kernel/AbstractExtractorTestCase.php

@ -25,7 +25,7 @@ abstract class AbstractExtractorTestCase extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'twig_tweak',
'twig_tweak_test',
'system',

2
tests/src/Kernel/BlockViewBuilderTest.php

@ -17,7 +17,7 @@ final class BlockViewBuilderTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'twig_tweak',
'twig_tweak_test',
'user',

10
tests/src/Kernel/CacheMetadataExtractorTest.php

@ -3,13 +3,21 @@
namespace Drupal\Tests\twig_tweak\Kernel;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\KernelTests\KernelTestBase;
/**
* A test for Cache Metadata Extractor service.
*
* @group twig_tweak
*/
final class CacheMetadataExtractorTest extends AbstractExtractorTestCase {
final class CacheMetadataExtractorTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'twig_tweak',
];
/**
* Test callback.

2
tests/src/Kernel/EntityFormViewBuilderTest.php

@ -20,7 +20,7 @@ final class EntityFormViewBuilderTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'twig_tweak',
'twig_tweak_test',
'user',

2
tests/src/Kernel/EntityViewBuilderTest.php

@ -20,7 +20,7 @@ final class EntityViewBuilderTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'twig_tweak',
'twig_tweak_test',
'user',

2
tests/src/Kernel/FieldViewBuilderTest.php

@ -20,7 +20,7 @@ final class FieldViewBuilderTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'twig_tweak',
'twig_tweak_test',
'user',

2
tests/src/Kernel/ImageViewBuilderTest.php

@ -19,7 +19,7 @@ final class ImageViewBuilderTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'twig_tweak',
'twig_tweak_test',
'user',

2
tests/src/Kernel/MenuViewBuilderTest.php

@ -15,7 +15,7 @@ final class MenuViewBuilderTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'twig_tweak',
'user',
'system',

2
tests/src/Kernel/RegionViewBuilderTest.php

@ -20,7 +20,7 @@ final class RegionViewBuilderTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'twig_tweak',
'twig_tweak_test',
'user',

Loading…
Cancel
Save