Skip to content

Instantly share code, notes, and snippets.

@rjmackay
Last active December 15, 2015 05:39
Show Gist options
  • Save rjmackay/5210622 to your computer and use it in GitHub Desktop.
Save rjmackay/5210622 to your computer and use it in GitHub Desktop.
Snippets for Ushahidi v3 blog post
Scenario: Listing All Forms
Given that I want to get all "Forms"
When I request "/forms"
Then the response is JSON
And the response has a "count" property
And the type of the "count" property is numeric
Then the response status code should be 200
<?php defined('SYSPATH') OR die('No direct script access.');
/**
* Initial core ushahidi structure
*/
class Migration_3_0_20130320172622 extends Minion_Migration_Base {
/**
* Run queries needed to apply this migration
*
* @param Kohana_Database $db Database connection
*/
public function up(Kohana_Database $db)
{
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment