public function testId() { $this->AuthUser->Auth->expects($this->once())->method('user')->with(null)->will($this->returnValue(['id' => '1'])); $this->assertSame('1', $this->AuthUser->id()); }