class TestBynderApi in Bynder 4.0.x
Test Bynder implementation to mock getAssetBankManager().
Hierarchy
- class \Drupal\bynder\BynderApi implements BynderApiInterface
- class \Drupal\Tests\bynder\Unit\TestBynderApi
Expanded class hierarchy of TestBynderApi
File
- tests/
src/ Unit/ BynderApiUnitTest.php, line 90
Namespace
Drupal\Tests\bynder\UnitView source
class TestBynderApi extends BynderApi {
/**
* {@inheritdoc}
*/
public function getAssetBankManager() {
// @todo Support updating the token.
throw new \Exception();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BynderApi:: |
protected | property | Bynder Api instance. | |
BynderApi:: |
protected | property | Bynder configuration. | |
BynderApi:: |
protected | property | The configuration object. | |
BynderApi:: |
protected | property | The cache service. | |
BynderApi:: |
protected | property | The configuration factory. | |
BynderApi:: |
protected | property | The logger factory. | |
BynderApi:: |
protected | property | The active session. | |
BynderApi:: |
protected | property | The state service. | |
BynderApi:: |
protected | property | The time service. | |
BynderApi:: |
public | function |
Creates an asset usage entry in Bynder. Overrides BynderApiInterface:: |
1 |
BynderApi:: |
constant | List of getTags queries that are automatically updated in crons. | ||
BynderApi:: |
constant | The Bynder integration ID. | 1 | |
BynderApi:: |
constant | List of API calls that should be cache with their cache keys as values. | ||
BynderApi:: |
constant | Cache ID used to store the derivatives information. | ||
BynderApi:: |
constant | Cache ID used to store the metaproperties information. | ||
BynderApi:: |
constant | Cache ID used to store the tags information. | ||
BynderApi:: |
public | function |
Finishes the access token retrieval after the user has been redirected. Overrides BynderApiInterface:: |
|
BynderApi:: |
public | function |
Retrieves all asset usage for a specific asset. Overrides BynderApiInterface:: |
1 |
BynderApi:: |
protected | function | ||
BynderApi:: |
public | function | 1 | |
BynderApi:: |
protected | function | ||
BynderApi:: |
public | function | Wraps getTags() and makes sure results are cached properly. | 1 |
BynderApi:: |
public | function |
Gets if the current user has a valid oAuth access token. Overrides BynderApiInterface:: |
1 |
BynderApi:: |
public | function |
Checks if the current user has upload permissions. Overrides BynderApiInterface:: |
1 |
BynderApi:: |
public | function |
Initiates the access token retrieval. Overrides BynderApiInterface:: |
|
BynderApi:: |
public | function |
Removes asset usage entry for a specific Bynder asset. Overrides BynderApiInterface:: |
1 |
BynderApi:: |
public | function |
Sets the Bynder configuration. Overrides BynderApiInterface:: |
|
BynderApi:: |
public | function | 1 | |
BynderApi:: |
public | function | ||
BynderApi:: |
public | function | BynderApi constructor. | |
TestBynderApi:: |
public | function |
Gets an instance of the asset bank manager to use for DAM queries. Overrides BynderApi:: |