public function testisAutoImport() { $inboundEmail = new InboundEmail(); $user = new User(); //test with invalid user $result = $inboundEmail->isAutoImport($user); $this->assertEquals(false, $result); //test with default user $user->retrieve('1'); $result = $inboundEmail->isAutoImport($user); $this->assertEquals(false, $result); }