-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
43 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
namespace Pelmered\FilamentMoneyField\Tests; | ||
|
||
use Pelmered\FilamentMoneyField\Infolists\Components\MoneyEntry; | ||
|
||
class FormInputTest extends TestCase | ||
{ | ||
|
||
public function testFormInputMoneyFormat(): void | ||
{ | ||
$this->markTestSkipped('Not implemented yet'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
<?php | ||
namespace Pelmered\FilamentMoneyField\Tests; | ||
|
||
use JetBrains\PhpStorm\NoReturn; | ||
use Pelmered\FilamentMoneyField\Infolists\Components\MoneyEntry; | ||
|
||
class MoneyEntryTest extends TestCase | ||
{ | ||
public function testInfoListMoneyFormat() | ||
public function testInfoListMoneyFormat(): void | ||
{ | ||
$this->markTestSkipped('Not implemented yet'); | ||
$this->markTestSkipped('Not working yet'); | ||
|
||
$moneyEntry = (new MoneyEntry('name'))->currency('SEK')->locale('sv_SE'); | ||
|
||
$moneyEntry->initMoneyEntry(); | ||
|
||
//MoneyTest::callMethod($moneyEntry, 'setUp', []); | ||
//$moneyEntry->__call('setUp', []); | ||
self::callMethod($moneyEntry, 'setUp', []); | ||
|
||
$state = 1000000; | ||
|
||
dd($moneyEntry->formatState('1000000')); | ||
|
||
$value = $moneyEntry->evaluate($moneyEntry->formatStateUsing, [ | ||
$value = $moneyEntry->evaluate(self::getProperty($moneyEntry, 'formatStateUsing'), [ | ||
'state' => $state, | ||
]); | ||
|
||
dd($value); | ||
$this->assertEquals('10000,00 kr', $value); | ||
|
||
|
||
$this->assertEquals('10000,00 kr', $moneyEntry->formatState('1000000')); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
use Pelmered\FilamentMoneyField\Infolists\Components\MoneyEntry; | ||
use Pelmered\FilamentMoneyField\Tests\TestCase; | ||
|
||
class TableColumnTest extends TestCase | ||
{ | ||
|
||
public function testTableColumnMoneyFormat(): void | ||
{ | ||
$this->markTestSkipped('Not implemented yet'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters