Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use static references in WebTestCase child classes

  • Loading branch information...
commit cce1a1cd22d93447053b420cc8f1ed7e870d2def 1 parent 20bdb4c
@jmikola jmikola authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 Tests/AdwordsWebTest.php
  2. +2 −2 Tests/AnalyticsWebTest.php
View
4 Tests/AdwordsWebTest.php
@@ -16,8 +16,8 @@ class AdwordsWebTest extends WebTestCase
protected function setUp()
{
parent::setUp();
- $this->client = $this->createClient();
- $this->adwords = $this->kernel->getContainer()->get('google.adwords');
+ $this->client = static::createClient();
+ $this->adwords = static::$kernel->getContainer()->get('google.adwords');
}
protected function tearDown()
View
4 Tests/AnalyticsWebTest.php
@@ -17,8 +17,8 @@ class AnalyticsWebTest extends WebTestCase
protected function setUp()
{
parent::setUp();
- $this->client = $this->createClient();
- $this->analytics = $this->kernel->getContainer()->get('google.analytics');
+ $this->client = static:createClient();
+ $this->analytics = static::$kernel->getContainer()->get('google.analytics');
}
protected function tearDown()
Please sign in to comment.
Something went wrong with that request. Please try again.