/** * @test */ public function getMessageCommitConfigurationReturnsSuccesfull() { $data = array('commit-msg' => array('regular-expression' => 'expression')); $this->configFileValidator->shouldReceive('validate'); $this->configFileReader->setData($data); $this->assertTrue(is_array($this->configFile->getMessageCommitConfiguration())); }
/** * @test */ public function serviceIsEnabled() { $data = ['pre-commit' => ['execute' => ['phpunit' => true]]]; $this->configFileReader->setData($data); $this->assertTrue($this->preCommitConfig->isEnabled('phpunit')); }