You are here

public function AssetRefreshManagerTest::providerTestFailedApiRequest in Media: Acquia DAM 8

Provides test data for testing failed API requests.

Return value

\Throwable[] Test data (GuzzleException and InvalidCredentialsException stubs).

File

tests/src/Unit/AssetRefreshManagerTest.php, line 482

Class

AssetRefreshManagerTest
AssetRefreshManager Service test.

Namespace

Drupal\Tests\media_acquiadam\Unit

Code

public function providerTestFailedApiRequest() : array {
  return [
    [
      new class extends \Exception implements GuzzleException {

      },
    ],
    [
      new InvalidCredentialsException(),
    ],
  ];
}