-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #202 from ElectricMaxxx/inject_services
do not use container directly
- Loading branch information
Showing
18 changed files
with
220 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,9 @@ | |
*/ | ||
namespace Lunetics\LocaleBundle\Tests\Form\Extension\Type; | ||
|
||
use Lunetics\LocaleBundle\Form\Extension\ChoiceList\LocaleChoiceList; | ||
use Lunetics\LocaleBundle\Form\Extension\Type\LocaleType; | ||
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
|
||
/** | ||
* @author Kevin Archer <[email protected]> | ||
|
@@ -46,15 +48,11 @@ public function testGetName() | |
|
||
protected function getMockLocaleChoiceList() | ||
{ | ||
return $this | ||
->getMockBuilder('Lunetics\LocaleBundle\Form\Extension\ChoiceList\LocaleChoiceList') | ||
->disableOriginalConstructor() | ||
->getMock() | ||
; | ||
return $this->createMock(LocaleChoiceList::class); | ||
} | ||
|
||
protected function getMockOptionsResolverInterface() | ||
{ | ||
return $this->getMock('Symfony\Component\OptionsResolver\OptionsResolver'); | ||
return $this->createMock(OptionsResolver::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ | |
namespace Lunetics\LocaleBundle\Tests\LocaleGuesser; | ||
|
||
use Lunetics\LocaleBundle\LocaleGuesser\DomainLocaleGuesser; | ||
use Lunetics\LocaleBundle\LocaleInformation\DomainLocaleMap; | ||
use Lunetics\LocaleBundle\Validator\MetaValidator; | ||
use Symfony\Component\HttpFoundation\Request; | ||
|
||
/** | ||
* @author Jachim Coudenys <[email protected]> | ||
|
@@ -65,24 +68,21 @@ public function dataDomains() | |
); | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
private function getMockDomainLocaleMap() | ||
{ | ||
return $this | ||
->getMockBuilder('\Lunetics\LocaleBundle\LocaleInformation\DomainLocaleMap') | ||
->disableOriginalConstructor() | ||
->getMock(); | ||
return $this->createMock(DomainLocaleMap::class); | ||
} | ||
|
||
private function getMockMetaValidator() | ||
{ | ||
return $this | ||
->getMockBuilder('\Lunetics\LocaleBundle\Validator\MetaValidator') | ||
->disableOriginalConstructor() | ||
->getMock(); | ||
return $this->createMock(MetaValidator::class); | ||
} | ||
|
||
private function getMockRequest() | ||
{ | ||
return $this->getMock('Symfony\Component\HttpFoundation\Request'); | ||
return $this->createMock(Request::class); | ||
} | ||
} | ||
} |
Oops, something went wrong.
Oh, it was me .... :-(