Exemplo n.º 1
0
 public function testCanAccessRequestInfoFromRequest()
 {
     $requestInfo = RequestInfo::fromEnv();
     $getRequest = new GetRequest($requestInfo, []);
     $query = new TestDomainQuery($getRequest);
     $this->assertSame($requestInfo, $query->getRequestInfo());
 }
Exemplo n.º 2
0
 public function testCanAccessValuesFromRequest()
 {
     $getData = ['testValue' => 'Unit-Test'];
     $getRequest = new GetRequest($getData);
     $query = new TestDomainQuery($getRequest);
     $this->assertEquals('Unit-Test', $query->getTestValue());
     $this->assertEquals($getData, $query->getTestData());
 }