Last active
December 11, 2015 02:38
-
-
Save bwoodmansee/4531950 to your computer and use it in GitHub Desktop.
Brainstorming links for testing rest relations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* InvitationsTest | |
* | |
* @Rest\Relation("self", | |
* href = "" | |
* ) | |
* @Rest\Relation("http://hautelook.com/rels/returns/items", | |
* href = "" | |
* ) | |
* @Rest\Relation("http://hautelook.com/rels/returns", | |
* href = "" | |
* ) | |
* @Rest\Relation("http://hautelook.com/rels/shipping", | |
* href = "" | |
* ) | |
* @Rest\Relation("http://hautelook.com/rels/members", | |
* href = "" | |
* ) | |
* | |
* @author Brandon Woodmansee <brandon.woodmansee@hautelook.com> | |
*/ | |
class InvitationsTest extends HautelookControllerTest | |
{ | |
protected function getRelations() { | |
$relations = $this->getKernel()->getContainer()->get('fsc_hateoas.metadata.factory')->getMetadata($this); | |
foreach( $relations->getRelations() as $rel) { | |
$links[] = $rel->getRel(); | |
} | |
return $links; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment