public function testNewValidUserLogin() { $this->acls[] = $acl = new Acl(); $acl->toArray(); $acl->fromArray(['object' => 'jarves/entryPoint', 'targetType' => \Jarves\ACL::TARGET_TYPE_GROUP, 'targetId' => $this->testGroupPk['id'], 'sub' => true, 'mode' => 0, 'access' => true, 'constraintType' => 1, 'constraintCode' => $this->getObjects()->getObjectUrlId('jarves/entryPoint', ['path' => '/admin'])], TableMap::TYPE_CAMELNAME); $acl->save(); $this->getCacher()->invalidateCache('core/acl'); $response = $this->restCall('/jarves/admin/login', 'POST', ['username' => 'test', 'password' => 'test']); $this->assertInternalType('array', $response['data']); $this->assertEquals($this->userPk['id'], $response['data']['userId']); $this->assertEquals(true, $response['data']['access']); }