Skip to content

Commit 2f57a27

Browse files
committed
raise package dependencies
1 parent fd2fad0 commit 2f57a27

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
CHANGELOG
22
=========
33

4+
0.3.0
5+
-----
6+
7+
* The requirements for `php-xapi/model` and `php-xapi/test-fixtures` have
8+
been bumped to `^1.0` to make use of their stable releases.
9+
10+
* The required version of the `php-xapi/repository-api` package has been
11+
raised to `^0.3`.
12+
413
0.2.1
514
-----
615

UPGRADE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
UPGRADE
22
=======
33

4+
Upgrading from 0.2 to 0.3
5+
-------------------------
6+
7+
* The requirements for `php-xapi/model` and `php-xapi/test-fixtures` have
8+
been bumped to `^1.0` to make use of their stable releases.
9+
10+
* The required version of the `php-xapi/repository-api` package has been
11+
raised to `^0.3`.
12+
413
Upgrading from 0.1 to 0.2
514
-------------------------
615

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
],
1313
"require": {
1414
"doctrine/common": "~2.4",
15-
"php-xapi/model": "^0.1.0",
16-
"php-xapi/repository-api": "^0.2.0"
15+
"php-xapi/model": "^1.0",
16+
"php-xapi/repository-api": "^0.3@dev"
1717
},
1818
"require-dev": {
19-
"php-xapi/test-fixtures": "^0.1.0"
19+
"php-xapi/test-fixtures": "^1.0"
2020
},
2121
"conflict": {
2222
"xabbuh/xapi-doctrine-storage": "*"
@@ -33,7 +33,7 @@
3333
},
3434
"extra": {
3535
"branch-alias": {
36-
"dev-master": "0.2.x-dev"
36+
"dev-master": "0.3.x-dev"
3737
}
3838
}
3939
}

tests/Unit/Repository/StatementRepositoryTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111

1212
namespace XApi\Repository\Doctrine\Tests\Unit\Repository;
1313

14+
use Rhumsaa\Uuid\Uuid;
1415
use Xabbuh\XApi\DataFixtures\StatementFixtures;
1516
use Xabbuh\XApi\DataFixtures\VerbFixtures;
17+
use Xabbuh\XApi\Model\StatementId;
1618
use Xabbuh\XApi\Model\StatementsFilter;
1719
use XApi\Repository\Api\Mapping\MappedStatement;
1820
use XApi\Repository\Doctrine\Repository\StatementRepository;
@@ -40,26 +42,26 @@ protected function setUp()
4042

4143
public function testFindStatementById()
4244
{
43-
$statementId = md5(uniqid());
45+
$statementId = StatementId::fromUuid(Uuid::uuid4());
4446
$this
4547
->mappedStatementRepository
4648
->expects($this->once())
4749
->method('findMappedStatement')
48-
->with(array('id' => $statementId))
50+
->with(array('id' => $statementId->getValue()))
4951
->will($this->returnValue(MappedStatement::createFromModel(StatementFixtures::getMinimalStatement())));
5052

5153
$this->statementRepository->findStatementById($statementId);
5254
}
5355

5456
public function testFindStatementsByCriteria()
5557
{
56-
$verb = VerbFixtures::getVerb();
58+
$verb = VerbFixtures::getTypicalVerb();
5759

5860
$this
5961
->mappedStatementRepository
6062
->expects($this->once())
6163
->method('findMappedStatements')
62-
->with($this->equalTo(array('verb' => $verb->getId())))
64+
->with($this->equalTo(array('verb' => $verb->getId()->getValue())))
6365
->will($this->returnValue(array()));
6466

6567
$filter = new StatementsFilter();

0 commit comments

Comments
 (0)