Skip to content

Commit

Permalink
Move to Alice 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurrensch committed Oct 19, 2014
1 parent a21ccbd commit 9e8b3be
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions Alice/DataFixtureLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,16 @@ public function find($className, $ids)
{
return $this->manager->find($className, $ids);
}

/**
* This is the identity provider that is currently not available in the stable version
* of Alice 1.* This will be available natively in 2.
*
* @param mixed $input
* @return mixed
*/
public function identity($input)
{
return $input;
}
}
1 change: 1 addition & 0 deletions Tests/Functional/Command/DoctrineFixtureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ private function verifyProducts()
'Hautelook\AliceBundle\Tests\Functional\TestBundle\Entity\Product',
$i
);
$this->assertStringStartsWith('Awesome Product', $product->getDescription());

// Make sure every product has a brand
$this->assertInstanceOf(
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/TestBundle/DataFixtures/ORM/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Hautelook\AliceBundle\Tests\Functional\TestBundle\Entity\Product:
product{1..10}:
name: Product <current()>
price: 10.0
description: Super awesome product
description: Awesome <identity(@self->name)>
brand: @brand*
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"require": {
"php": ">=5.3.0",
"nelmio/alice": "~1.6",
"nelmio/alice": "~1.7",
"doctrine/doctrine-fixtures-bundle": "~2.2",
"doctrine/doctrine-bundle": "~1.2"
},
Expand Down

0 comments on commit 9e8b3be

Please sign in to comment.