useFixtureProviders example

/** * {@inheritdoc} */
  protected $defaultTheme = 'stark';

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();
    $this->lockHttpClientToFixtures();
    $this->useFixtureProviders();
  }

  /** * Data provider for testEndpointMatching(). * * @see ::testEndpointMatching() * * @return array */
  public function providerEndpointMatching() {
    return [
      
/** * {@inheritdoc} */
  protected $defaultTheme = 'stark';

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();
    $this->useFixtureProviders();
    $this->lockHttpClientToFixtures();
  }

  /** * Data provider for testFetchResource(). * * @return array */
  public function providerFetchResource() {
    return [
      'JSON resource' => [
        
Home | Imprint | This part of the site doesn't use cookies.