Skip to content

Instantly share code, notes, and snippets.

@brianium
Created December 22, 2014 18:53
Show Gist options
  • Save brianium/66c03fccbcca451d4998 to your computer and use it in GitHub Desktop.
Save brianium/66c03fccbcca451d4998 to your computer and use it in GitHub Desktop.
<?php
it('should return the newly created resource', function() {
$this->collection->insert($this->currentJson['users'])->willReturn(true);
$response = $this->controller->create($this->request);
expect($response)->to->have->status(201);
expect($response)->json->to->have->deep->property('users->login', 'brian');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment