Skip to content

Commit 052158e

Browse files
authored
Merge pull request #2 from remkade/master
Fix tests
2 parents 2f18419 + 4574ba8 commit 052158e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

multisite-json-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Plugin Name: Multisite JSON API
1616
* Plugin URI: http://github.com/remkade/multisite-json-api
1717
* Description: A JSON API for managing multisite sites
18-
* Version: 1.0.0
18+
* Version: 1.1.0
1919
* Author: Kyle Leaders
2020
* Author URI: http://github.com/remkade
2121
* Text Domain: en_US

tests/EndpointTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function testGetOrCreateUserByEmailWithExistingUsers() {
209209
public function testCreateSiteWithSubdomain() {
210210
self::$is_subdomain = true;
211211
$state = WP_State::get_instance();
212-
$site = $this->api->create_site('Site Title', 'domain', 2);
212+
$site = $this->api->create_site('Site Title', 'domain', 2, array());
213213
$this->assertNotEquals(false, $site);
214214
$this->assertObjectHasAttribute('blog_id', $site);
215215
$this->assertObjectHasAttribute('domain', $site);
@@ -221,7 +221,7 @@ public function testCreateSiteWithSubdomain() {
221221
public function testCreateSiteWithSubdirectory() {
222222
self::$is_subdomain = false;
223223
$state = WP_State::get_instance();
224-
$site = $this->api->create_site('Site Title', 'domain', 2);
224+
$site = $this->api->create_site('Site Title', 'domain', 2, array());
225225
$this->assertNotEquals(false, $site);
226226
$this->assertObjectHasAttribute('blog_id', $site);
227227
$this->assertObjectHasAttribute('domain', $site);

0 commit comments

Comments
 (0)