Skip to content

Commit

Permalink
missing route metadata test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Mar 3, 2018
1 parent a275964 commit 80659ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Routing/Mapping/Annotation/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function testDefaults()
self::assertEquals('', $this->annotation->getName());
self::assertEquals(['GET'], $this->annotation->getMethods());
self::assertEquals(0, $this->annotation->getPriority());
self::assertFalse($this->annotation->isXmlHttpRequest());
}

/**
Expand Down Expand Up @@ -108,4 +109,11 @@ public function testPriority()

self::assertEquals(-10, $this->annotation->getPriority());
}

public function testXmlHttpRequest()
{
$this->annotation->setXmlHttpRequest(true);

self::assertTrue($this->annotation->isXmlHttpRequest());
}
}

0 comments on commit 80659ff

Please sign in to comment.