public function testFindBelongsToMany() { $post = $this->postsTable->findById(1)->contain('Tags')->first(); $this->assertEquals(1, count($post->tags)); }