Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests #1

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tests/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function publicPropertiesThatShouldExist()
['groups'],
['tickets'],
['conversations'],
['categories'],
['forums'],
['topics'],
['comments'],
Expand Down
1 change: 1 addition & 0 deletions tests/Resources/AgentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function methodsThatShouldExist()
return [
['all'],
['view'],
['create'],
['current'],
];
}
Expand Down
29 changes: 29 additions & 0 deletions tests/Resources/ArticleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace Freshdesk\tests\Resources;

use Freshdesk\Resources\Article;
use Freshdesk\tests\TestCase;

/**
* Article resource tests
*
*/
class ArticleTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->class = Article::class;
}

public function methodsThatShouldExist()
{
return [
['create'],
['view'],
['update'],
['delete'],
];
}
}
2 changes: 1 addition & 1 deletion tests/Resources/CompanyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @author Matthew Clarkson <[email protected]>
*/
class CompanyApiTest extends TestCase
class CompanyTest extends TestCase
{
public function setUp()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Resources/ContactTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @author Matthew Clarkson <[email protected]>
*/
class ContactApiTest extends TestCase
class ContactTest extends TestCase
{

public function setUp()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
<?php

namespace Freshdesk\tests\Resources;

use Freshdesk\Resources\Category;
use Freshdesk\Resources\Discussion;
use Freshdesk\tests\TestCase;

/**
* Category resource tests
* Discussion resource tests
*
* @author Matthew Clarkson <[email protected]>
*/
class CategoryTest extends TestCase
class DiscussionTest extends TestCase
{
public function setUp()
{
parent::setUp();

$this->class = Category::class;
$this->class = Discussion::class;
}

public function methodsThatShouldExist()
{
return [
['create'],
['all'],
['create'],
['view'],
['update'],
['delete'],
Expand Down
29 changes: 29 additions & 0 deletions tests/Resources/FolderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace Freshdesk\tests\Resources;

use Freshdesk\Resources\Folder;
use Freshdesk\tests\TestCase;

/**
* Folder resource tests
*
*/
class FolderTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->class = Folder::class;
}

public function methodsThatShouldExist()
{
return [
['forCategory'],
['view'],
['update'],
['delete'],
];
}
}
2 changes: 1 addition & 1 deletion tests/Resources/GroupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @author Matthew Clarkson <[email protected]>
*/
class GroupApiTest extends TestCase
class GroupTest extends TestCase
{
public function setUp()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Resources/SLAPolicyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @author Matthew Clarkson <[email protected]>
*/
class SLAPolicytest extends TestCase
class SLAPolicyTest extends TestCase
{
public function setUp()
{
Expand Down
30 changes: 30 additions & 0 deletions tests/Resources/SolutionTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace Freshdesk\tests\Resources;

use Freshdesk\Resources\Solution;
use Freshdesk\tests\TestCase;

/**
* Solution resource tests
*
*/
class SolutionTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->class = Solution::class;
}

public function methodsThatShouldExist()
{
return [
['all'],
['create'],
['view'],
['update'],
['delete'],
];
}
}
2 changes: 1 addition & 1 deletion tests/Resources/TicketTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @author Matthew Clarkson <[email protected]>
*/
class TicketApiTest extends TestCase
class TicketTest extends TestCase
{
public function setUp()
{
Expand Down