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
{ | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "hamcrest/hamcrest", | |
"version": "1.1.0", | |
"dist": { | |
"type": "zip", | |
"url": "https://hamcrest.googlecode.com/files/hamcrest-php-1.1.0.zip" |
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
<?php | |
namespace STSShop\Admin\Command\Affiliate; | |
use Symfony\Component\HttpFoundation\Request; | |
use STSShop\Admin\Affiliate\Properties as AffiliateProperties; | |
use Mockery as m; | |
class PutTest extends \PHPUnit_Framework_TestCase | |
{ |
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
<?php | |
namespace STSShop\Admin\Command\Affiliate; | |
use STSShop\Admin\Affiliate\JsonContainer; | |
use STSShop\Admin\Affiliate\Model; | |
use STSShop\Admin\Affiliate\Properties; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Symfony\Component\Validator\Validator; |
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
[ | |
{ | |
"id": "10001", | |
"name": "Sorell Hotel Aarauerhof", | |
"ratingStars": 3, | |
"geolocation": { | |
"latitude": "47.391650", | |
"longitude": "8.051530" | |
}, | |
"city": [ |
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
(function () { | |
'use strict'; | |
module.exports = function () { | |
var state = arguments[0] || {}; | |
return Object.seal({ | |
id: state.id, | |
name: state.name | |
}); |
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
import { shallow } from 'enzyme'; | |
import { SimpleSearch } from '../../src/containers/SimpleSearch'; | |
import { IntlProvider } from 'react-intl'; | |
const intlProvider = new IntlProvider({locale: 'en'}, {}); | |
describe('<SimpleSearch/>', () => { | |
let wrapper, {intl} = intlProvider.getChildContext(); | |
beforeEach(() => { |