/** * Setup test. * * @return void */ public function setUp() { parent::setUp(); $this->dilemma = $this->app->make('TradeoffDilemma', $this->getResolution()); $this->resolution = $this->dilemma->getResolution(); $this->map = $this->resolution->getMap(); }
/** * Test that we can get all the solutions being shadowed by a particular solution. * * @return void */ public function testResolutionGetSolutionsBeingShadowedByMethod() { $solutions = $this->dilemma->getResolution()->getSolutionsBeingShadowedBy('14'); $this->assertCount(1, $solutions); $this->assertEquals('7', $solutions['0']->get('solution_ref')); }