예제 #1
0
파일: TestQuery.php 프로젝트: artovenry/wp
 function test_sample()
 {
     $this->assertEquals(Info::take()->post_type, "info");
     $this->assertCount(10, Test\Event::fetch("posts_per_page=10"));
     foreach (Event::where("posts_per_page=3") as $item) {
         $this->assertInstanceOf("Test\\Event", $item);
     }
     $this->assertEquals(Event::take()->post_status, "publish");
     $this->assertEquals(Event::take()->post_type, "event");
 }