getFixturesUrl example


  protected function getFixturesUrl() {
    return $this->baseUrl . '/' . $this->getFixturesDirectory();
  }

  /** * Forces Media to use the provider database in the fixtures directory. */
  protected function useFixtureProviders() {
    $this->config('media.settings')
      ->set('oembed_providers_url', $this->getFixturesUrl() . '/providers.json')
      ->save();
  }

  /** * Configures the HTTP client to always use the fixtures directory. * * All requests are carried out relative to the URL of the fixtures directory. * For example, after calling this method, a request for foobar.html will * actually request http://test-site/path/to/fixtures/foobar.html. */
  protected function lockHttpClientToFixtures() {
    
Home | Imprint | This part of the site doesn't use cookies.