-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
1 parent
7ef856b
commit 73aa7bc
Showing
4 changed files
with
34 additions
and
16 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
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,20 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
convertWarningsToExceptions="false" | ||
cacheResult="false" | ||
colors="true"> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" bootstrap="vendor/autoload.php" cacheResult="false" colors="true" cacheDirectory=".phpunit.cache"> | ||
<testsuites> | ||
<testsuite name="Package"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<env name="LOGIN_URL" value="https://login.salesforce.com"/> | ||
<env name="CACHE_DRIVER" value="file" /> | ||
<env name="APP_KEY" value="base64:WRAf0EDpFqwpbS829xKy2MGEkcJxIEmMrwFIZbGxIqE=" /> | ||
<server name="DB_CONNECTION" value="sqlite"/> | ||
<server name="DB_DATABASE" value=":memory:"/> | ||
<env name="LOGIN_URL" value="https://login.salesforce.com"/> | ||
<env name="CACHE_DRIVER" value="file"/> | ||
<env name="APP_KEY" value="base64:WRAf0EDpFqwpbS829xKy2MGEkcJxIEmMrwFIZbGxIqE="/> | ||
<server name="DB_CONNECTION" value="sqlite"/> | ||
<server name="DB_DATABASE" value=":memory:"/> | ||
</php> | ||
</phpunit> |
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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
convertWarningsToExceptions="false" | ||
cacheResult="false" | ||
colors="true"> | ||
<testsuites> | ||
<testsuite name="Package"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<env name="LOGIN_URL" value="https://login.salesforce.com"/> | ||
<env name="CACHE_DRIVER" value="file" /> | ||
<env name="APP_KEY" value="base64:WRAf0EDpFqwpbS829xKy2MGEkcJxIEmMrwFIZbGxIqE=" /> | ||
<server name="DB_CONNECTION" value="sqlite"/> | ||
<server name="DB_DATABASE" value=":memory:"/> | ||
</php> | ||
</phpunit> |
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 |
---|---|---|
|
@@ -442,11 +442,14 @@ public function testWhereDate() | |
'Custom_Date_Field__c' => $now, | ||
'Company' => 'Test Co', | ||
]); | ||
$lead = TestLead::select('Custom_Date_Field__c', 'Id')->where('Email', '[email protected]')->whereDate('Custom_Date_Field__c', '>=', today())->first(); | ||
$lead = TestLead::select('Custom_Date_Field__c', 'Id') | ||
->where('Email', '[email protected]') | ||
->whereDate('Custom_Date_Field__c', '>=', today()) | ||
->first(); | ||
|
||
TestLead::whereTime('CreatedDate', now())->get(); | ||
|
||
$this->assertEquals($now->startOfDay(), $lead->Custom_Date_Field__c); | ||
$this->assertTrue($now->startOfDay()->eq($lead->Custom_Date_Field__c)); | ||
} | ||
|
||
public function testOrWhere() | ||
|