public function testConfig()
 {
     $config = $this->taskwarrior->config();
     $this->assertInstanceOf('DavidBadura\\Taskwarrior\\Config\\Config', $config);
     $this->assertTrue($config->has('urgency.age.max'));
     $this->assertEquals('365', $config->get('urgency.age.max'));
 }
示例#2
0
 /**
  * @param Context|string $context
  * @return Task[]|ArrayCollection
  * @throws Exception\ConfigException
  */
 public function findByContext($context)
 {
     if (!$context instanceof Context) {
         $context = $this->taskwarrior->config()->getContext($context);
     }
     return $this->createQueryBuilder()->where($context->filter)->getResult();
 }