Skip to content

Commit

Permalink
WIP - fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanproskuryakov committed Dec 5, 2015
1 parent bcd2436 commit e8664d1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
6 changes: 2 additions & 4 deletions frontend/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@
<title ng-bind="pageTitle">Aisel - Open Source CMS based on AngularJS and Symfony2</title>
<meta name="description" ng-attr-content="{{metaDescription}}">
<meta name="keywords" ng-attr-content="{{metaKeywords}}">

<link rel="stylesheet" href="/bower_components/sass-bootstrap/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="/bower_components/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="/bower_components/angular-loading-bar/build/loading-bar.css"/>
<script data-require="prefixfree@*"
data-semver="1.0.7"
src="//cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js">
</script>

<link rel="stylesheet" href="/styles/styles.css">
</head>
<body>
Expand Down
5 changes: 1 addition & 4 deletions frontend/web/index_dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@
<title ng-bind="pageTitle">Aisel - Open Source CMS based on AngularJS and Symfony2</title>
<meta name="description" ng-attr-content="{{metaDescription}}">
<meta name="keywords" ng-attr-content="{{metaKeywords}}">

<link rel="stylesheet" href="/bower_components/sass-bootstrap/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="/bower_components/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="/bower_components/angular-loading-bar/build/loading-bar.css"/>
<script data-require="prefixfree@*"
data-semver="1.0.7"
src="//cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js">
</script>
<link rel="stylesheet" href="/styles/styles.css">

<script src="/bower_components/gremlins.js/gremlins.min.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions src/Aisel/AddressingBundle/Tests/SerializerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testSerializer()
{
$country = $this
->em
->getRepository(Country::class)
->getRepository('Aisel\AddressingBundle\Entity\Country')
->findOneBy(['iso2' => 'RU']);

$obj = ['id' => $country->getId()];
Expand All @@ -37,7 +37,7 @@ public function testSerializer()
$serializer = $this->getContainer()->get('jms_serializer');
$convertedValue = $serializer->deserialize(
json_encode($obj),
Country::class,
'Aisel\AddressingBundle\Entity\Country',
'json'
);

Expand Down
3 changes: 1 addition & 2 deletions src/Aisel/PageBundle/Tests/Entity/PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Faker;
use Aisel\PageBundle\Entity\Page;
use Aisel\PageBundle\Entity\Node;
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;

/**
* PageTests
Expand All @@ -37,7 +36,7 @@ protected function tearDown()

public function testDuplicateNodes()
{
$this->setExpectedException(UniqueConstraintViolationException::class);
$this->setExpectedException('Doctrine\DBAL\Exception\UniqueConstraintViolationException');

$node = new Node();
$node->setName($this->faker->title);
Expand Down
5 changes: 2 additions & 3 deletions src/Aisel/ProductBundle/Tests/Entity/ProductTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Aisel\ProductBundle\Entity\Product;
use Aisel\ProductBundle\Entity\Node;
use Aisel\MediaBundle\Entity\Media;
use Doctrine\DBAL\Exception\UniqueConstraintViolationException;

/**
* ProductTest
Expand All @@ -38,7 +37,7 @@ protected function tearDown()

public function testDuplicateNodes()
{
$this->setExpectedException(UniqueConstraintViolationException::class);
$this->setExpectedException('Doctrine\DBAL\Exception\UniqueConstraintViolationException');

$node = new Node();
$node->setStatus(true);
Expand Down Expand Up @@ -70,7 +69,7 @@ public function testDuplicateNodes()

public function testDuplicateImages()
{
$this->setExpectedException(UniqueConstraintViolationException::class);
$this->setExpectedException('Doctrine\DBAL\Exception\UniqueConstraintViolationException');
$image = new Media();
$image->setType(Media::MEDIA_IMAGE);
$image->setFilename($this->faker->numberBetween(0, 10000));
Expand Down

0 comments on commit e8664d1

Please sign in to comment.