コード例 #1
0
ファイル: test-timber.php プロジェクト: oligoform/timber
 function testGetPids()
 {
     $pids = array();
     $pids[] = $this->factory->post->create();
     $pids[] = $this->factory->post->create();
     $pids[] = $this->factory->post->create();
     $pidz = Timber::get_pids('post_type=post');
     sort($pidz, SORT_NUMERIC);
     $this->assertTrue(arrays_are_similar($pids, $pidz));
 }