File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -46,41 +46,13 @@ public function setUp()
4646 );
4747 }
4848
49- /**
50- * Test UiTiD v1
51- */
52- public function testUserService ()
53- {
54- $ cfUser = new \CultureFeed_User ();
55- $ cfUser ->id = 1 ;
56-
57- $ this ->cultureFeed ->expects ($ this ->any ())
58- ->method ('getUser ' )
59- ->willReturn ($ cfUser );
60-
61- $ this ->userRoleStorage ->expects ($ this ->any ())
62- ->method ('getRolesByUserId ' )
63- ->willReturn (['administrator ' ]);
64-
65- $ this ->platformClient ->expects ($ this ->never ())
66- ->method ('getCurrentUser ' );
67-
68- $ user = $ this ->userService ->getUser (1 );
69-
70- $ this ->assertInstanceOf (User::class, $ user );
71- }
72-
7349 /**
7450 * Test UiTiD v2
7551 */
7652 public function testUiTidV2Service ()
7753 {
7854 $ dummyToken = 'dummyToken ' ;
7955
80- $ this ->cultureFeed ->expects ($ this ->any ())
81- ->method ('getUser ' )
82- ->willThrowException (new \Exception ());
83-
8456 $ this ->userRoleStorage ->expects ($ this ->any ())
8557 ->method ('getRolesByUserId ' )
8658 ->willReturn (['administrator ' ]);
You can’t perform that action at this time.
0 commit comments