public function testDeleteSchema() { $createSchema = new ParseSchema('SchemaDeleteTest'); $createSchema->addField('newField01'); $createSchema->save(); $deleteSchema = new ParseSchema('SchemaDeleteTest'); $deleteSchema->delete(); $getSchema = new ParseSchema('SchemaDeleteTest'); $this->setExpectedException('Parse\\ParseException', 'class SchemaDeleteTest does not exist'); $getSchema->get(); }
public function tearDown() { $createClass = new ParseSchema('Game'); $createClass->delete(); Helper::tearDown(); }
public function testAssertClassName() { $schema = new ParseSchema(); $this->setExpectedException('\\Exception', 'You must set a Class Name before make any request.'); $schema->assertClassName(); }