1
0
Fork 0

Fixed test expectation

pull/1/head
Jordi Boggiano 2011-05-23 02:23:21 +02:00
parent 00260a89ae
commit d181e32000
1 changed files with 19 additions and 3 deletions

View File

@ -51,9 +51,25 @@ class SolverTest extends \PHPUnit_Framework_TestCase
$solver = new Solver($policy, $pool, $repoInstalled);
$result = $solver->solve($request);
$this->assertTrue($result, 'Request could be solved');
$expected = array(
array(
'job' => 'install',
'package' => $packageA,
),
array(
'job' => 'install',
'package' => $newPackageB,
),
array(
'job' => 'update',
'package' => $packageC,
),
array(
'job' => 'remove',
'package' => $oldPackage,
),
);
//$transaction = $solver->getTransaction();
// assert ...
$this->assertEquals($expected, $result);
}
}