Skip to content
512 changes: 0 additions & 512 deletions slides/snippets/src/SlidesSnippets.php

This file was deleted.

2 changes: 1 addition & 1 deletion slides/snippets/tests/SlidesCopyPresentationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/slides_copy_presentation.php';
require 'src/SlidesCopyPresentation.php';

class SlidesCopyPresentationTest extends \PHPUnit\Framework\TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion slides/snippets/tests/SlidesCreateBulletedTextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/slides_create_bulleted_text.php';
require 'src/SlidesCreateBulletedText.php';

class SlidesCreateBulletedTextTest extends \PHPUnit\Framework\TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/slides_create_image.php';
require 'src/SlidesCreateImage.php';

class SlidesCreateImage extends \PHPUnit\Framework\TestCase
class SlidesCreateImageTest extends \PHPUnit\Framework\TestCase
{

public function testCreateImage()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
require 'src/slides_create_presentation.php';

class SlidesCreatePresentaionTest extends \PHPUnit\Framework\TestCase
class SlidesCreatePresentationTest extends \PHPUnit\Framework\TestCase
{

public function testCreatePresentation()
Expand Down
2 changes: 1 addition & 1 deletion slides/snippets/tests/SlidesCreateSheetsChartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/slides_create_sheets_chart.php';
require 'src/SlidesCreateSheetsChart.php';

class SlidesCreateSheetsChartTest extends \PHPUnit\Framework\TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
require 'src/slides_create_slide.php';

class SlidesCreateSlide extends \PHPUnit\Framework\TestCase
class SlidesCreateSlideTest extends \PHPUnit\Framework\TestCase
{

public function testCreateImage()
Expand Down
2 changes: 1 addition & 1 deletion slides/snippets/tests/SlidesCreateTextBoxWithTextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/slides_create_textbox_with_text.php';
require 'src/SlidesCreateTextboxWithText.php';

class SlidesCreateTextBoxWithTextTest extends \PHPUnit\Framework\TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion slides/snippets/tests/SlidesImageMergingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/slides_image_merging.php';
require 'src/SlidesImageMerging.php';

class SlidesImageMergingTest extends \PHPUnit\Framework\TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion slides/snippets/tests/SlidesRefreshSheetsChartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/slides_refreh_sheets_chart.php';
require 'src/SlidesRefreshSheetsChart.php';

class SlidesRefreshSheetsChartTest extends \PHPUnit\Framework\TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion slides/snippets/tests/SlidesSimpleTextReplaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/slides_simple_text_replace.php';
require 'src/SlidesSimpleTextReplace.php';

class SlidesSimpleTextReplaceTest extends \PHPUnit\Framework\TestCase
{
Expand Down
174 changes: 0 additions & 174 deletions slides/snippets/tests/SlidesSnippetsTest.php

This file was deleted.

28 changes: 28 additions & 0 deletions slides/snippets/tests/SlidesTextMergingTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/SlidesTextMerging.php';

class SlidesTextMergingTest extends \PHPUnit\Framework\TestCase
{

public function testTextMerging()
{
$presentation = textMerging('12ZqIbNsOdfGr99FQJi9mQ0zDq-Q9pdf6T3ReVBz0Lms', '1sN_EOj0aYp5hn9DeqSY72G7sKaFRg82CsMGnK_Tooa8');
$id = $presentation;
$this->assertNotNull($id, 'Missing presentation ID.');
}
}
28 changes: 28 additions & 0 deletions slides/snippets/tests/SlidesTextStyleUpdateTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* Copyright 2022 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require 'src/SlidesTextStyleUpdate.php';

class SlidesTextStyleUpdateTest extends \PHPUnit\Framework\TestCase
{

public function testTextStyleUpdate()
{
$presentation = textStyleUpdate('12ZqIbNsOdfGr99FQJi9mQ0zDq-Q9pdf6T3ReVBz0Lms', 'MyTextBox_01');
$id = $presentation;
$this->assertNotNull($id, 'Missing presentation ID.');
}
}