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} * {@inheritdoc}
*/ */
public static $modules = [ protected static $modules = [
'twig_tweak', 'twig_tweak',
'twig_tweak_test', 'twig_tweak_test',
'views', 'views',

2
tests/src/Kernel/AbstractExtractorTestCase.php

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

2
tests/src/Kernel/BlockViewBuilderTest.php

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

10
tests/src/Kernel/CacheMetadataExtractorTest.php

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

2
tests/src/Kernel/EntityFormViewBuilderTest.php

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

2
tests/src/Kernel/EntityViewBuilderTest.php

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

2
tests/src/Kernel/FieldViewBuilderTest.php

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

2
tests/src/Kernel/ImageViewBuilderTest.php

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

2
tests/src/Kernel/MenuViewBuilderTest.php

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

2
tests/src/Kernel/RegionViewBuilderTest.php

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

Loading…
Cancel
Save