PragmaBroadvertising /
laravel-solaredge-api
| 1 | <?php |
||||
| 2 | /** |
||||
| 3 | * Created by PhpStorm. |
||||
| 4 | * User: evert |
||||
| 5 | * Date: 25/09/2017 |
||||
| 6 | * Time: 02:14 |
||||
| 7 | */ |
||||
| 8 | |||||
| 9 | namespace PragmaBroadvertising\SolarEdge\Tests; |
||||
| 10 | |||||
| 11 | use PragmaBroadvertising\SolarEdge\Facades\SolarEdge; |
||||
| 12 | |||||
| 13 | class SiteTest extends TestCase |
||||
| 14 | { |
||||
| 15 | /** |
||||
| 16 | * Return details |
||||
| 17 | * |
||||
| 18 | * @test |
||||
| 19 | */ |
||||
| 20 | public function should_return_site_details() |
||||
| 21 | { |
||||
| 22 | $this->assertInstanceOf('Illuminate\Support\Collection', SolarEdge::details()); |
||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||
| 23 | } |
||||
| 24 | |||||
| 25 | /** |
||||
| 26 | * Return energy - ASC |
||||
| 27 | * |
||||
| 28 | * @test |
||||
| 29 | */ |
||||
| 30 | public function should_return_site_energy_ascending() |
||||
| 31 | { |
||||
| 32 | $this->assertInstanceOf('Illuminate\Support\Collection', SolarEdge::energy(7, 'asc')); |
||||
|
0 ignored issues
–
show
The method
energy() does not exist on PragmaBroadvertising\SolarEdge\Facades\SolarEdge. Since you implemented __callStatic, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 33 | } |
||||
| 34 | |||||
| 35 | /** |
||||
| 36 | * Return energy DESC |
||||
| 37 | * |
||||
| 38 | * @test |
||||
| 39 | */ |
||||
| 40 | public function should_return_site_energy_descending() |
||||
| 41 | { |
||||
| 42 | $this->assertInstanceOf('Illuminate\Support\Collection', SolarEdge::energy(7, 'desc')); |
||||
| 43 | } |
||||
| 44 | |||||
| 45 | /** |
||||
| 46 | * Return power - ASC |
||||
| 47 | * |
||||
| 48 | * @test |
||||
| 49 | */ |
||||
| 50 | public function should_return_site_power_ascending() |
||||
| 51 | { |
||||
| 52 | $this->assertInstanceOf('Illuminate\Support\Collection', SolarEdge::power(7, 'asc')); |
||||
|
0 ignored issues
–
show
The method
power() does not exist on PragmaBroadvertising\SolarEdge\Facades\SolarEdge. Since you implemented __callStatic, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 53 | } |
||||
| 54 | |||||
| 55 | /** |
||||
| 56 | * Return power - DESC |
||||
| 57 | * |
||||
| 58 | * @test |
||||
| 59 | */ |
||||
| 60 | public function should_return_site_power_descending() |
||||
| 61 | { |
||||
| 62 | $this->assertInstanceOf('Illuminate\Support\Collection', SolarEdge::power(7, 'desc')); |
||||
| 63 | } |
||||
| 64 | |||||
| 65 | /** |
||||
| 66 | * Return overview |
||||
| 67 | * |
||||
| 68 | * @test |
||||
| 69 | */ |
||||
| 70 | public function should_return_site_overview() |
||||
| 71 | { |
||||
| 72 | $this->assertInstanceOf('Illuminate\Support\Collection', SolarEdge::overview()); |
||||
|
0 ignored issues
–
show
The method
overview() does not exist on PragmaBroadvertising\SolarEdge\Facades\SolarEdge. Since you implemented __callStatic, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 73 | } |
||||
| 74 | } |