File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,33 @@ public function shouldShowProject()
110110        $ this assertEquals ($ expectedArray$ apishow (1 ));
111111    }
112112
113+     /** 
114+      * @test 
115+      */ 
116+     public  function  shouldShowProjectWithStatistics ()
117+     {
118+         $ expectedArrayarray (
119+             'id '  => 1 ,
120+             'name '  => 'Project Name ' ,
121+             'statistics '  => array (
122+                 'commit_count '  => 37 ,
123+                 'storage_size '  => 1038090 ,
124+                 'repository_size '  => 1038090 ,
125+                 'lfs_objects_size '  => 0 ,
126+                 'job_artifacts_size '  => 0 
127+             )
128+         );
129+ 
130+         $ api$ this getApiMock ();
131+         $ apiexpects ($ this once ())
132+             ->method ('get ' )
133+             ->with ('projects/1 ' , ['statistics '  => true ])
134+             ->will ($ this returnValue ($ expectedArray
135+         ;
136+ 
137+         $ this assertEquals ($ expectedArray$ apishow (1 ));
138+     }
139+ 
113140    /** 
114141     * @test 
115142     */ 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments