Fixed test expectation
parent
00260a89ae
commit
d181e32000
|
@ -51,9 +51,25 @@ class SolverTest extends \PHPUnit_Framework_TestCase
|
||||||
$solver = new Solver($policy, $pool, $repoInstalled);
|
$solver = new Solver($policy, $pool, $repoInstalled);
|
||||||
$result = $solver->solve($request);
|
$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();
|
$this->assertEquals($expected, $result);
|
||||||
// assert ...
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue