Skip to content

Commit 77ffd3f

Browse files
Assets query
1 parent c8fe2a7 commit 77ffd3f

File tree

3 files changed

+66720
-3
lines changed

3 files changed

+66720
-3
lines changed

test/AssetTestCase.php

Whitespace-only changes.

test/ContentStackTestCases.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
require_once __DIR__ . '/REST.php';
33
require_once __DIR__ . '/constants.php';
44
require_once __DIR__ . '/utility.php';
5-
65
require_once __DIR__ . '/../lib/index.php';
76

87
use Contentstack\Test\REST;
98

10-
class ContentStackTestCases extends PHPUnit_Framework_Testcase {
9+
use PHPUnit\Framework\TestCase;
10+
11+
class ContentStackTestCases extends TestCase {
1112
public static $rest;
1213
public static $Stack;
1314
/*
@@ -248,7 +249,7 @@ public function testFindNotExists() {
248249

249250
public function testFindAscending() {
250251
$field = 'created_at';
251-
$entries = self::$Stack->ContentType(CT_ContentType)->Query()->toJSON()->ascending($field)->find();
252+
$entries = self::$Stack->ContentType(CT_ContentType)->Query()->toJSON()->ascending('created_at')->find();
252253
$this->assertArrayHasKey(0, $entries);
253254
$this->assertTrue((count($entries[0]) === ENTRY_COUNT));
254255
$this->assertTrue(checkEntriesSorting($entries[0], $field, 'asc'));

0 commit comments

Comments
 (0)