class ResourceFetcherTest
Same name and namespace in other branches
- 10 core/modules/media/tests/src/Unit/ResourceFetcherTest.php \Drupal\Tests\media\Unit\ResourceFetcherTest
- 10 core/modules/media/tests/src/Functional/ResourceFetcherTest.php \Drupal\Tests\media\Functional\ResourceFetcherTest
@coversDefaultClass \Drupal\media\OEmbed\ResourceFetcher
@group media
Hierarchy
- class \Drupal\Tests\media\Kernel\ResourceFetcherTest
Expanded class hierarchy of ResourceFetcherTest
File
-
core/
modules/ media/ tests/ src/ Kernel/ ResourceFetcherTest.php, line 13
Namespace
Drupal\Tests\media\KernelView source
class ResourceFetcherTest extends KernelTestBase {
/**
* @covers ::__construct
*
* @group legacy
*/
public function testDeprecations() : void {
$this->expectDeprecation('Passing NULL as the $cache_backend parameter to Drupal\\media\\OEmbed\\ResourceFetcher::__construct() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. See https://www.drupal.org/node/3223594');
new ResourceFetcher($this->container
->get('http_client'), $this->createMock('\\Drupal\\media\\OEmbed\\ProviderRepositoryInterface'));
}
}
Members
Title Sort descending | Deprecated | Modifiers | Object type | Summary |
---|---|---|---|---|
AssertLegacyTrait::assert | Deprecated | protected | function | |
AssertLegacyTrait::assertEqual | Deprecated | protected | function | |
AssertLegacyTrait::assertIdentical | Deprecated | protected | function | |
AssertLegacyTrait::assertIdenticalObject | Deprecated | protected | function | |
AssertLegacyTrait::assertNotEqual | Deprecated | protected | function | |
AssertLegacyTrait::assertNotIdentical | Deprecated | protected | function | |
AssertLegacyTrait::pass | Deprecated | protected | function | |
AssertLegacyTrait::verbose | Deprecated | protected | function | |
PhpUnitWarnings::$deprecationWarnings | private static | property | Deprecation warnings from PHPUnit to raise with @trigger_error(). | |
PhpUnitWarnings::addWarning | public | function | Converts PHPUnit deprecation warnings to E_USER_DEPRECATED. | |
ResourceFetcherTest::testDeprecations | public | function | @covers ::__construct[[api-linebreak]] |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.