Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
Fix tests. Version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Jun 1, 2019
1 parent 6b0a834 commit 7ef466c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://img.shields.io/travis/sciactive/nymph-server/master.svg)](http://travis-ci.org/sciactive/nymph-server) [![Latest Stable Version](https://img.shields.io/packagist/v/sciactive/nymph-server.svg)](https://packagist.org/packages/sciactive/nymph-server) [![Open Issues](https://img.shields.io/github/issues/sciactive/nymph-server.svg)](https://github.com/sciactive/nymph-server/issues) [![License](https://img.shields.io/github/license/sciactive/nymph-server.svg)]()

Nymph is an object data store for JavaScript and PHP.
Powerful object data storage and querying for collaborative web apps.

## Installation

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "sciactive/nymph-server",
"description": "Powerful object data storage and querying for collaborative web apps.",
"version": "3.0.0-beta.24",
"time": "2019-05-16",
"version": "3.0.0",
"time": "2019-05-31",
"homepage": "http://nymph.io/",
"type": "library",
"authors": [
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Nymph.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @see http://nymph.io/
*/
class Nymph {
const VERSION = '3.0.0-beta.24';
const VERSION = '3.0.0';

/**
* The Nymph config array.
Expand Down
8 changes: 3 additions & 5 deletions testing/tests/EntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public function testAcceptJSON($arr) {
$entityDataDelete = json_decode($json, true);

unset($entityDataDelete['data']['string']);
$testEntity->jsonAcceptData($entityDataDelete['data']);
$testEntity->jsonAcceptData($entityDataDelete);

$this->assertFalse(isset($testEntity->string));

Expand All @@ -315,7 +315,6 @@ public function testAcceptJSON($arr) {
$testEntity->cdate = "13";
$testEntity->mdate = "14.00009";
$entityData['tags'] = ['test', 'notag', 'newtag'];
$testEntity->jsonAcceptTags($entityData['tags']);
$entityData['data']['name'] = 'bad';
$entityData['data']['string'] = 'good';
$entityData['data']['null'] = true;
Expand All @@ -324,7 +323,7 @@ public function testAcceptJSON($arr) {
$entityData['data']['reference'] = false;
$entityData['data']['refArray'] = [false];
$entityData['data']['refObject'] = (object) ["thing"=>false];
$testEntity->jsonAcceptData($entityData['data']);
$testEntity->jsonAcceptData($entityData);

$this->assertFalse($testEntity->hasTag('notag'));
$this->assertTrue($testEntity->hasTag('newtag'));
Expand Down Expand Up @@ -352,8 +351,7 @@ public function testAcceptJSON($arr) {

$testEntity->cdate = "13";
$testEntity->mdate = "14";
$testEntity->jsonAcceptTags($entityData['tags']);
$testEntity->jsonAcceptData($entityData['data']);
$testEntity->jsonAcceptData($entityData);

$this->assertFalse($testEntity->hasTag('notag'));
$this->assertTrue($testEntity->hasTag('newtag'));
Expand Down

0 comments on commit 7ef466c

Please sign in to comment.